Small emacs changes
This commit is contained in:
parent
fbb630e815
commit
29e60f8aef
2 changed files with 11 additions and 7 deletions
|
@ -121,6 +121,8 @@
|
||||||
;; advanced later? Look into configuring pairs for frequently used
|
;; advanced later? Look into configuring pairs for frequently used
|
||||||
;; major modes.
|
;; major modes.
|
||||||
((text-mode prog-mode) . electric-pair-mode)
|
((text-mode prog-mode) . electric-pair-mode)
|
||||||
|
;; Always highlight the current line in text modes
|
||||||
|
((text-mode prog-mode) . hl-line-mode)
|
||||||
:custom
|
:custom
|
||||||
(fill-column 80 "Fill at column 80 instead of 70")
|
(fill-column 80 "Fill at column 80 instead of 70")
|
||||||
(create-lockfiles nil "I'm the only user on my devices and use emacs as a daemon, so don't clutter with lockfiles")
|
(create-lockfiles nil "I'm the only user on my devices and use emacs as a daemon, so don't clutter with lockfiles")
|
||||||
|
@ -209,9 +211,11 @@
|
||||||
|
|
||||||
;; Sorting when filtering
|
;; Sorting when filtering
|
||||||
(use-package prescient
|
(use-package prescient
|
||||||
:config
|
:custom
|
||||||
(prescient-persist-mode 1)
|
(prescient-aggressive-file-save t "Be aggressive with saving prescient data since we're in daemon mode")
|
||||||
(run-at-time t 300 'prescient--save)
|
(prescient-history-length 100000 "Save a lot of history")
|
||||||
|
(prescient-frequency-threshold 0.00005 "Save a lot of history")
|
||||||
|
:config (prescient-persist-mode 1)
|
||||||
)
|
)
|
||||||
|
|
||||||
;; Rainbow delimiters
|
;; Rainbow delimiters
|
||||||
|
|
|
@ -37,16 +37,16 @@
|
||||||
package = config.chvp.base.emacs.package;
|
package = config.chvp.base.emacs.package;
|
||||||
};
|
};
|
||||||
home = {
|
home = {
|
||||||
file = {
|
|
||||||
".emacs.d/early-init.el".source = ./early-init.el;
|
|
||||||
".emacs.d/init.el".text = config.chvp.base.emacs.fullConfig;
|
|
||||||
};
|
|
||||||
packages = [
|
packages = [
|
||||||
(pkgs.writeShellScriptBin "emacs" ''${config.chvp.base.emacs.package}/bin/emacsclient -c "$@"'')
|
(pkgs.writeShellScriptBin "emacs" ''${config.chvp.base.emacs.package}/bin/emacsclient -c "$@"'')
|
||||||
(pkgs.writeShellScriptBin "emacsclient" ''${config.chvp.base.emacs.package}/bin/emacsclient "$@"'')
|
(pkgs.writeShellScriptBin "emacsclient" ''${config.chvp.base.emacs.package}/bin/emacsclient "$@"'')
|
||||||
];
|
];
|
||||||
sessionVariables = { EDITOR = "emacs"; };
|
sessionVariables = { EDITOR = "emacs"; };
|
||||||
};
|
};
|
||||||
|
xdg.configFile = {
|
||||||
|
"emacs/init.el".text = config.chvp.base.emacs.fullConfig;
|
||||||
|
"emacs/early-init.el".source = ./early-init.el;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue