summaryrefslogtreecommitdiff
path: root/.emacs
diff options
context:
space:
mode:
authorKΓ©vin Le Gouguec <kevin.legouguec@gmail.com>2023-01-15 01:24:13 +0100
committerKΓ©vin Le Gouguec <kevin.legouguec@gmail.com>2023-01-15 01:38:27 +0100
commit152329e65368108ff8b6d38eaa2ee189a6bb4df1 (patch)
treed34901e9c524d40417628a6335ad18b1616420dc /.emacs
parent597c3901cc06c894364fe3d061133d8cc3500ccb (diff)
downloaddotfiles-152329e65368108ff8b6d38eaa2ee189a6bb4df1.tar.xz
Port more settings to use-package
Diffstat (limited to '.emacs')
-rw-r--r--.emacs19
1 files changed, 17 insertions, 2 deletions
diff --git a/.emacs b/.emacs
index 8c98644..68638ce 100644
--- a/.emacs
+++ b/.emacs
@@ -336,8 +336,6 @@
'(:eval (if (>= text-scale-mode-amount 0) "πŸ—š" "πŸ—›"))
'face-remap)
(delight 'visual-line-mode nil t)
-(delight 'which-key-mode nil 'which-key)
-(delight 'whitespace-mode nil 'whitespace)
(delight 'with-editor-mode "⸎" 'with-editor)
;; TODO: Narrow (βŒ–, β›Ά)
@@ -763,5 +761,22 @@
:custom
(show-paren-mode t)
(show-paren-predicate t))
+
+(use-package which-key
+ :custom
+ (which-key-idle-delay 0.5)
+ (which-key-mode t)
+ :delight)
+
+(use-package whitespace
+ :config
+ (my/setopt
+ whitespace-style
+ (my/list-update whitespace-style
+ nil '(lines missing-newline-at-eof)))
+ :delight
+ ;; FIXME: without :demand t, enabling whitespace-mode in a diff
+ ;; buffer first causes diff-mode's settings to be applied globally.
+ :demand t)
;;; TODO: decruftify mode-line (e.g. remove superflous parens).