all repos — nixfiles @ 36f21cda40d2e4718c50fb2652001d1eefaa9c8c

System and user configuration, managed by nix and home-manager

emacs: remove some useless code

magit-define-global-key-bindings is t by default

editorconfig will always be available assuming I'm running emacs from nix/home-manager
Alan Pearce alan@alanpearce.eu
Sun, 26 Mar 2023 20:20:37 +0200
commit

36f21cda40d2e4718c50fb2652001d1eefaa9c8c

parent

8cdf1921592825b20e7f4bb005b418963356e135

2 files changed, 4 insertions(+), 10 deletions(-)

jump to
M user/emacs/early-init.eluser/emacs/early-init.el
@@ -1,8 +1,9 @@+(defvar package-quickstart t)
 (setq inhibit-startup-screen t
       initial-scratch-message ""
       initial-major-mode 'fundamental-mode
-      package-quickstart t
-      frame-inhibit-implied-resize t)
+      frame-inhibit-implied-resize t
+      byte-compile-warnings '(not free-vars unresolved noruntime lexical make-local cl-functions))
 
 ;; Disable all the bars, unless on macOS, in which case, keep the menu bar.
 (unless (eq window-system 'ns)
@@ -10,5 +11,3 @@ (menu-bar-mode -1)) (scroll-bar-mode -1)
 (tool-bar-mode -1)
 (set-fringe-mode '(4 . 4))
-
-(defvar evil-want-keybinding nil)
M user/emacs/init.eluser/emacs/init.el
@@ -344,7 +344,7 @@ "r" #'winner-redo                      "C-r" #'winner-redo))
 ;;; Evil
 
-(eval-when-compile
+(eval-and-compile
   (defvar evil-want-keybinding nil))
 (use-package evil
   :demand t
@@ -497,8 +497,6 @@ (use-package magit   :defer 5
   :commands (magit-status magit-dispatch)
   :custom (magit-auto-revert-mode nil)
-  :init (progn
-          (setq magit-define-global-key-bindings t))
   :config (progn
             (setq magit-section-visibility-indicator nil
                   magit-diff-refine-hunk 'all
@@ -536,9 +534,6 @@ :commands (git-timemachine)) 
 (use-package editorconfig
   :defer 2
-  :init (progn
-          (unless (executable-find "editorconfig")
-            (warn "Missing `editorconfig' executable.")))
   :config (editorconfig-mode +1))
 
 ;;; Completion