From 9e66b67149a19eb204fe9f3bb6e8f5981e0d6190 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Tue, 18 Feb 2020 16:01:12 +0100 Subject: Emacs: improve startup speed --- user/emacs/.emacs.d/init.el | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'user') 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) -- cgit 1.4.1