Changed scrollwheel behaviour, added automatic buffer deletion.
Also re-added fci-company bugfix.
This commit is contained in:
parent
6db5815c23
commit
a99ddf3cd1
24
init.el
24
init.el
|
@ -101,6 +101,17 @@
|
|||
;; Banish customizations to another file
|
||||
(setq custom-file (concat user-emacs-directory "custom.el"))
|
||||
|
||||
;; Scoll 1 line at a time
|
||||
(setq mouse-wheel-scroll-amount '(1 ((shift) . 1)))
|
||||
|
||||
;; Delete old buffers
|
||||
;; https://www.emacswiki.org/emacs/CleanBufferList
|
||||
(use-package midnight
|
||||
:config
|
||||
(setq midnight-period "2 hours" ; Clean every 2 hours
|
||||
clean-buffer-list-delay-general 1)) ; Clean normal buffers after 1 day
|
||||
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;; Keybindings ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; Scroll in other window
|
||||
(global-set-key (kbd "S-<prior>") 'scroll-other-window-down)
|
||||
|
@ -290,10 +301,19 @@
|
|||
(use-package fill-column-indicator
|
||||
:after company
|
||||
:config
|
||||
;; TODO: Find out why I can't put this in :init or :config
|
||||
;; ;; TODO: Find out why I can't put this in :init or :config
|
||||
;; (define-globalized-minor-mode global-fci-mode fci-mode
|
||||
;; (lambda () (fci-mode 1)))
|
||||
;; (lambda () (fci-mode t)))
|
||||
;; (global-fci-mode t)
|
||||
|
||||
;; Fix bug with fci + company
|
||||
(defun on-off-fci-before-company(command)
|
||||
(when (string= "show" command)
|
||||
(turn-off-fci-mode))
|
||||
(when (string= "hide" command)
|
||||
(turn-on-fci-mode)))
|
||||
(advice-add 'company-call-frontends :before #'on-off-fci-before-company)
|
||||
;; Add global fci-mode
|
||||
:hook
|
||||
(prog-mode . fci-mode)
|
||||
(text-mode . fci-mode)
|
||||
|
|
Loading…
Reference in New Issue
Block a user