2019-12-07 23:09:25 +01:00
|
|
|
;; Persist command history
|
|
|
|
(savehist-mode 1)
|
|
|
|
|
2020-01-05 23:51:24 +01:00
|
|
|
;; Enable C-r in evil
|
2020-01-06 02:22:45 +01:00
|
|
|
(use-package undo-tree
|
|
|
|
:ensure t)
|
2019-12-07 23:09:25 +01:00
|
|
|
|
|
|
|
;;;; TAGS configuration.
|
|
|
|
;; Goto tag with M-.
|
|
|
|
(global-set-key "\M-." 'etags-select-find-tag)
|
|
|
|
;; Automatically load TAGS file (if exists) when opening emacs.
|
|
|
|
(let ((my-tags-file (locate-dominating-file default-directory "TAGS")))
|
|
|
|
(when my-tags-file
|
|
|
|
(message "Loading tags file: %s" my-tags-file)
|
|
|
|
(visit-tags-table my-tags-file)))
|
|
|
|
|
2020-01-05 23:51:24 +01:00
|
|
|
;; Resize windows
|
2019-12-07 23:09:25 +01:00
|
|
|
(global-set-key (kbd "S-C-h") 'shrink-window-horizontally)
|
|
|
|
(global-set-key (kbd "S-C-l") 'enlarge-window-horizontally)
|
|
|
|
(global-set-key (kbd "S-C-j") 'shrink-window)
|
|
|
|
(global-set-key (kbd "S-C-k") 'enlarge-window)
|
|
|
|
|
|
|
|
(provide 'jenga-emacs)
|