about summary refs log tree commit diff stats
path: root/.emacs.d/lisp
diff options
context:
space:
mode:
authorDavid Morgan <djm_uk@protonmail.com>2022-10-25 16:33:25 +0100
committerDavid Morgan <djm_uk@protonmail.com>2022-10-25 16:34:01 +0100
commita49e8a448abb13b0013bc7a90a07be207effda7f (patch)
tree00ed03f87ff60b70c7ecd3128ba05136fab7a1d0 /.emacs.d/lisp
parent21c26b0df69e4e557c8ec50ed531d942155ffea0 (diff)
downloaddotfiles-a49e8a448abb13b0013bc7a90a07be207effda7f.tar.gz
Boost vanity metrics again
Diffstat (limited to '.emacs.d/lisp')
-rw-r--r--.emacs.d/lisp/init-editor.el17
1 files changed, 8 insertions, 9 deletions
diff --git a/.emacs.d/lisp/init-editor.el b/.emacs.d/lisp/init-editor.el
index 0956b75..c0caff7 100644
--- a/.emacs.d/lisp/init-editor.el
+++ b/.emacs.d/lisp/init-editor.el
@@ -10,6 +10,14 @@
   ("C--" . text-scale-decrease)
   :hook
   (after-save . executable-make-buffer-file-executable-if-script-p)
+  (emacs-startup . (lambda ()
+                     (save-place-mode 1)
+                     (delete-selection-mode t)
+                     (global-auto-revert-mode 1)
+                     (set-terminal-coding-system 'utf-8)
+                     (set-keyboard-coding-system 'utf-8)
+                     (set-selection-coding-system 'utf-8)
+                     (prefer-coding-system 'utf-8)))
   ;; (text-mode . whitespace-cleanup)
 
   :config
@@ -25,10 +33,7 @@
   (setq comment-auto-fill-only-comments t)
   (setq large-file-warning-threshold 100000000)
   (setq create-lockfiles nil)
-  (delete-selection-mode t)
   (setq global-auto-revert-non-file-buffers t)
-  (global-auto-revert-mode t)
-
   (setq backup-by-copying t)
   (setq backup-directory-alist
         `((".*" . ,temporary-file-directory))
@@ -36,8 +41,6 @@
         `((".*" ,temporary-file-directory t)))
 
   (setq save-place-file (expand-file-name "saveplace" save-dir))
-  (save-place-mode 1)
-
   ;; https://git.sr.ht/~technomancy/better-defaults/tree/master/item/better-defaults.el
   (setq save-interprogram-paste-before-kill t
         apropos-do-all t
@@ -50,10 +53,6 @@
   (setq sentence-end-double-space nil)
   (set-charset-priority 'unicode)
   (setq locale-coding-system 'utf-8)
-  (set-terminal-coding-system 'utf-8)
-  (set-keyboard-coding-system 'utf-8)
-  (set-selection-coding-system 'utf-8)
-  (prefer-coding-system 'utf-8)
   (setq default-process-coding-system '(utf-8-unix . utf-8-unix))
   (set-default 'imenu-auto-rescan t))