emacs.d/behaviour.el

19 lines
567 B
EmacsLisp
Raw Normal View History

2022-11-20 16:56:34 +01:00
;; Evil quit
(evil-define-command evil-quit
(&optional force)
:repeat nil
:repeat nil
(if (eq (window-main-window) (selected-window))
(if (equal (buffer-name) "*dashboard*") nil (kill-buffer))
(evil-window-delete)))
2022-11-20 17:20:21 +01:00
2022-11-25 01:20:50 +01:00
;; Treemacs directory expansion
2022-11-20 17:20:21 +01:00
(with-eval-after-load 'treemacs
(define-key treemacs-mode-map [mouse-1] #'treemacs-single-click-expand-action))
2022-11-25 01:20:50 +01:00
;; Save backup files to a single dir
(setq backup-directory-alist
`((".*" . ,temporary-file-directory)))
(setq auto-save-file-name-transforms
`((".*" ,temporary-file-directory t)))