diff options
Diffstat (limited to '.emacs')
| -rw-r--r-- | .emacs | 24 |
1 files changed, 0 insertions, 24 deletions
@@ -283,30 +283,6 @@ (add-hook 'shell-mode-hook 'my/shell-hook) -;; What I mean: -;; (defun my/erc-hook () -;; (add-to-list 'erc-modules 'log) -;; (delq 'fill erc-modules) -;; (erc-update-modules)) -;; -;; That cannot work because erc-update-modules only iterates over -;; erc-modules, so it will not act on the `fill' module. -;; -;; I do *not* want to maintain an exhaustive and manually curated list -;; of ERC modules; I just want to add/remove a few ones. Customizing -;; erc-{log,fill}-mode does not work: the contents of erc-modules -;; take precedence. -;; -;; My best attempt at solving this is thus abusing erc-modules's -;; setter function, which will iterate over items in the old value, -;; and disable those that are absent from the new one. -(defun my/erc-hook () - (let ((new-modules - (delete-dups (remq 'fill (cons 'log erc-modules))))) - (customize-set-variable 'erc-modules new-modules))) - -(add-hook 'erc-mode-hook 'my/erc-hook) - (add-hook 'dired-mode-hook 'diff-hl-dired-mode-unless-remote) (add-to-list 'ibuffer-saved-filter-groups |
