summary refs log tree commit diff stats
path: root/user
diff options
context:
space:
mode:
authorAlan Pearce2020-02-18 16:01:12 +0100
committerAlan Pearce2020-02-18 16:01:12 +0100
commit9e66b67149a19eb204fe9f3bb6e8f5981e0d6190 (patch)
treec1a5b98e17958380a97a05b142ebf1deeca82688 /user
parentd5b0b8e3c2d6b3ac13350c97e18b2fbb4f5fa275 (diff)
downloadnixfiles-9e66b67149a19eb204fe9f3bb6e8f5981e0d6190.tar.lz
nixfiles-9e66b67149a19eb204fe9f3bb6e8f5981e0d6190.tar.zst
nixfiles-9e66b67149a19eb204fe9f3bb6e8f5981e0d6190.zip
Emacs: improve startup speed
Diffstat (limited to 'user')
-rw-r--r--user/emacs/.emacs.d/init.el20
1 files changed, 10 insertions, 10 deletions
diff --git a/user/emacs/.emacs.d/init.el b/user/emacs/.emacs.d/init.el
index 829bac94..6d84bd0f 100644
--- a/user/emacs/.emacs.d/init.el
+++ b/user/emacs/.emacs.d/init.el
@@ -2,9 +2,10 @@
 (setq inhibit-startup-echo-area-message "alan")
 (setq inhibit-startup-screen t
       initial-scratch-message ""
-      initial-major-mode 'text-mode
+      initial-major-mode 'fundamental-mode
       package-enable-at-startup nil
-      evil-want-keybinding nil)
+      evil-want-keybinding nil
+      frame-inhibit-implied-resize t)
 
 (package-initialize)
 
@@ -211,7 +212,7 @@ _p_rev       _u_pper              _=_: upper/lower       _r_esolve
      "Save and bury buffer" :color blue)
     ("q" nil "cancel" :color blue))
   :hook (magit-diff-visit-file . (lambda ()
-                                   (when smerge-mode
+                                   (when (bound-and-true-p smerge-mode)
                                      (unpackaged/smerge-hydra/body)))))
 
 (use-package swiper
@@ -617,7 +618,7 @@ _p_rev       _u_pper              _=_: upper/lower       _r_esolve
 (use-package eshell-toggle
   :after projectile
   :commands (eshell-toggle)
-  :general ("C-`" . eshell-toggle)
+  :general ("C-`" #'eshell-toggle)
   :config (setq eshell-toggle-use-projectile-root t))
 
 (use-package esh-autosuggest
@@ -706,12 +707,11 @@ _p_rev       _u_pper              _=_: upper/lower       _r_esolve
                                       #'executable-make-buffer-file-executable-if-script-p :append :local)))
 
 (add-to-list 'auto-mode-alist '("\\.env\\'" . conf-unix-mode))
-(use-package sh-script
-  :mode (("\\.zsh\\'" . shell-script-mode)
-         ("zshenv\\'" . shell-script-mode)
-         ("zshrc\\'"  . shell-script-mode))
-  :config (setq sh-shell-file "/usr/bin/env zsh"
-                sh-basic-offset 2))
+(add-to-list 'auto-mode-alist '("\\.zsh\\'" . shell-script-mode))
+(add-to-list 'auto-mode-alist '("zshenv\\'" . shell-script-mode))
+(add-to-list 'auto-mode-alist '("zshrc\\'"  . shell-script-mode))
+(setq sh-shell-file "/usr/bin/env zsh"
+      sh-basic-offset 2)
 
 (add-hook 'shell-mode-hook 'ansi-color-for-comint-mode-on)