emacs.d/behaviour.el

19 lines
567 B
EmacsLisp

;; 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)))
;; Treemacs directory expansion
(with-eval-after-load 'treemacs
(define-key treemacs-mode-map [mouse-1] #'treemacs-single-click-expand-action))
;; Save backup files to a single dir
(setq backup-directory-alist
`((".*" . ,temporary-file-directory)))
(setq auto-save-file-name-transforms
`((".*" ,temporary-file-directory t)))