Commit 76a265dc92e9

Vincent Demeester <vincent@sbr.pm>
2022-10-07 17:52:13
tools/emacs: migrate some stuff from scratch
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 18d2c95
Changed files (4)
tools/emacs/config/config-appearance.el
@@ -216,6 +216,28 @@ questions.  Else use completion to select the tab to switch to."
                           24-hours minutes)))
   (display-time))
 
+(use-package lin
+  :unless noninteractive
+  :config
+  (setq lin-face 'lin-blue)
+  (setq lin-mode-hooks
+	    '(bongo-mode-hook
+          dired-mode-hook
+          elfeed-search-mode-hook
+          git-rebase-mode-hook
+          ibuffer-mode-hook
+          ilist-mode-hook
+          ledger-report-mode-hook
+          log-view-mode-hook
+          magit-log-mode-hook
+          mu4e-headers-mode
+          notmuch-search-mode-hook
+          notmuch-tree-mode-hook
+          occur-mode-hook
+          org-agenda-mode-hook
+          tabulated-list-mode-hook))
+  (lin-global-mode))
+
 (use-package tooltip
   :unless noninteractive
   :config
tools/emacs/config/config-windows.el
@@ -55,11 +55,7 @@
          ("S-C-<up>" . enlarge-window)))
 ;; -UseWindow
 
-(use-package zoom-window
-  :commands (zoom-window-zoom)
-  :bind (("C-x C-z" . zoom-window-zoom))
-  :config
-  (setq zoom-window-mode-line-color "#8ac7ff"))
+;; TODO: Move display-buffer-alist here
 
 (provide 'config-windows)
 ;;; config-windows ends here
tools/emacs/init.el
@@ -83,19 +83,6 @@
 (defconst vde/custom-file (locate-user-emacs-file "custom.el")
   "File used to store settings from Customization UI.")
 
-(use-package cus-edit
-  :config
-  (setq
-   custom-file vde/custom-file
-   custom-buffer-done-kill nil          ; Kill when existing
-   custom-buffer-verbose-help nil       ; Remove redundant help text
-   custom-unlispify-tag-names nil       ; Show me the real variable name
-   custom-unlispify-menu-entries nil)
-  (unless (file-exists-p custom-file)
-    (write-region "" nil custom-file))
-
-  (load vde/custom-file 'no-error 'no-message))
-
 ;; Remove built-in org-mode
 (require 'cl-seq)
 (setq load-path
users/vincent/dev/emacs.nix
@@ -87,6 +87,7 @@ let
     marginalia
     markdown-mode
     minions
+    modus-themes
     moody
     multi-vterm
     mwim
@@ -135,7 +136,6 @@ let
     with-editor
     xterm-color
     yaml-mode
-    zoom-window
   ];
 in
 {