projects
/
~bandali
/
configs
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
emacs: experiment with a fill-column of 47 for neat and short lines
[~bandali/configs]
/
.emacs.d
/
init.el
diff --git
a/.emacs.d/init.el
b/.emacs.d/init.el
index
06fd31f
..
4f286c0
100644
(file)
--- a/
.emacs.d/init.el
+++ b/
.emacs.d/init.el
@@
-281,6
+281,9
@@
For disabling the behaviour for certain buffers and/or modes."
;;;; C-level customizations
;;;; C-level customizations
+(defvar b/fill-column 47
+ "My custom `fill-column'.")
+
(setq
;; minibuffer
enable-recursive-minibuffers t
(setq
;; minibuffer
enable-recursive-minibuffers t
@@
-301,7
+304,9
@@
For disabling the behaviour for certain buffers and/or modes."
scroll-conservatively 10
scroll-preserve-screen-position 1
;; focus follows mouse
scroll-conservatively 10
scroll-preserve-screen-position 1
;; focus follows mouse
- mouse-autoselect-window t)
+ mouse-autoselect-window t
+ ;; custom fill-column
+ fill-column b/fill-column)
(setq-default
;; always use space for indentation
(setq-default
;; always use space for indentation
@@
-543,12
+548,13
@@
For disabling the behaviour for certain buffers and/or modes."
;; for back and forward mouse keys
("<XF86Back>" . previous-buffer)
("<mouse-8>" . previous-buffer)
;; for back and forward mouse keys
("<XF86Back>" . previous-buffer)
("<mouse-8>" . previous-buffer)
- ("<drag-mouse-8>" . previous-buffer)
+
;;
("<drag-mouse-8>" . previous-buffer)
("<XF86Forward>" . next-buffer)
("<mouse-9>" . next-buffer)
("<XF86Forward>" . next-buffer)
("<mouse-9>" . next-buffer)
- ("<drag-mouse-9>" . next-buffer)
- ("<drag-mouse-2>" . kill-this-buffer)
- ("<drag-mouse-3>" . switch-to-buffer))
+ ;; ("<drag-mouse-9>" . next-buffer)
+ ;; ("<drag-mouse-2>" . kill-this-buffer)
+ ;; ("<drag-mouse-3>" . switch-to-buffer)
+ )
(bind-keys
:prefix-map b/straight-prefix-map
(bind-keys
:prefix-map b/straight-prefix-map
@@
-1086,7
+1092,8
@@
This function is intended for use with `ivy-ignore-buffers'."
("C-S-l" . b/eshell-clear)
("M-r" . counsel-esh-history)
;; ([tab] . company-complete)
("C-S-l" . b/eshell-clear)
("M-r" . counsel-esh-history)
;; ([tab] . company-complete)
- ))
+ :map eshell-hist-mode-map
+ ("M-r" . counsel-esh-history)))
:hook (eshell-mode . b/eshell-setup)
:custom
:hook (eshell-mode . b/eshell-setup)
:custom
@@
-2154,6
+2161,8
@@
This function is intended for use with `ivy-ignore-buffers'."
;; (: gnus-group-split-fancy "INBOX" t "INBOX")
;; gnu
(list ".*<\\(.*\\)\\.\\(non\\)?gnu\\.org>.*" "l.\\1")
;; (: gnus-group-split-fancy "INBOX" t "INBOX")
;; gnu
(list ".*<\\(.*\\)\\.\\(non\\)?gnu\\.org>.*" "l.\\1")
+ ;; gnus
+ (list ".*<\\(.*\\)\\.gnus\\.org>.*" "l.\\1")
;; *.lists.sr.ht, omitting one dot if present
;; add more \\.?\\([^.]*\\) if needed
(list ".*<~\\(.*\\)/\\([^.]*\\)\\.?\\([^.]*\\)\\.lists.sr.ht>.*" "l.~\\1.\\2\\3")
;; *.lists.sr.ht, omitting one dot if present
;; add more \\.?\\([^.]*\\) if needed
(list ".*<~\\(.*\\)/\\([^.]*\\)\\.?\\([^.]*\\)\\.lists.sr.ht>.*" "l.~\\1.\\2\\3")
@@
-2548,8
+2557,8
@@
https://csclub.uwaterloo.ca/~abandali")
:hook (;; (message-setup . mml-secure-message-sign-pgpmime)
(message-mode . flyspell-mode)
(message-mode . (lambda ()
:hook (;; (message-setup . mml-secure-message-sign-pgpmime)
(message-mode . flyspell-mode)
(message-mode . (lambda ()
- ;; (setq fill-column 65
-
;; message-fill-column 65
)
+ (setq-local fill-column b/fill-column
+
message-fill-column b/fill-column
)
(make-local-variable 'company-idle-delay)
(setq company-idle-delay 0.2))))
;; :custom-face
(make-local-variable 'company-idle-delay)
(setq company-idle-delay 0.2))))
;; :custom-face
@@
-2584,47
+2593,59
@@
https://csclub.uwaterloo.ca/~abandali")
("r" . footnote-renumber-footnotes)
("s" . footnote-set-style)))
("r" . footnote-renumber-footnotes)
("s" . footnote-set-style)))
-(use-package
e
bdb
+(use-package
b
bdb
:demand
:after gnus
:demand
:after gnus
- :bind (:map gnus-group-mode-map ("e" .
e
bdb))
+ :bind (:map gnus-group-mode-map ("e" .
b
bdb))
:config
:config
- (setq ebdb-sources (b/var "ebdb"))
- (with-eval-after-load 'swiper
- (add-to-list 'swiper-font-lock-exclude 'ebdb-mode t)))
+ (bbdb-initialize 'gnus 'message)
+ :custom
+ (bbdb-complete-mail-allow-cycling t)
+ (bbdb-user-mail-address-re message-dont-reply-to-names))
-(use-feature ebdb-com
- :after ebdb)
+(comment
+ (use-package ebdb
+ :demand
+ :after gnus
+ :bind (:map gnus-group-mode-map ("e" . ebdb))
+ :config
+ (setq ebdb-sources (b/var "ebdb"))
+ (with-eval-after-load 'swiper
+ (add-to-list 'swiper-font-lock-exclude 'ebdb-mode t)))
-(use-feature ebdb-complete
- :after ebdb
- :config
- ;; (setq ebdb-complete-mail 'capf)
- (ebdb-complete-enable))
+ (use-feature ebdb-com
+ :after ebdb)
-(use-feature ebdb-message
- :demand
- :after ebdb)
+ (use-feature ebdb-complete
+ :after ebdb
+ :config
+ ;; (setq ebdb-complete-mail 'capf)
+ (ebdb-complete-enable))
-;; (use-package company-ebdb
-;; :config
-
;; (defun company-ebdb--post-complete (_) nil)
)
+ (use-feature ebdb-message
+ :demand
+
:after ebdb
)
-(use-feature ebdb-gnus
- :after ebdb
- :custom
- (ebdb-gnus-window-size 0.3))
+ ;; (use-package company-ebdb
+ ;; :config
+ ;; (defun company-ebdb--post-complete (_) nil))
-(use-feature ebdb-mua
- :demand
- :after ebdb
-
:custom (ebdb-mua-pop-up t
))
+ (use-feature ebdb-gnus
+ :after ebdb
+ :custom
+
(ebdb-gnus-window-size 0.3
))
-;; (use-package ebdb-message
-;; :after ebdb)
+ (use-feature ebdb-mua
+ :demand
+ :after ebdb
+ :custom (ebdb-mua-pop-up t))
+
+ ;; (use-package ebdb-message
+ ;; :after ebdb)
-;; (use-package ebdb-vcard
-;; :after ebdb)
+ ;; (use-package ebdb-vcard
+ ;; :after ebdb)
+ )
(use-package message-x)
(use-package message-x)