aboutsummaryrefslogtreecommitdiff
path: root/.emacs.d
diff options
context:
space:
mode:
Diffstat (limited to '.emacs.d')
-rw-r--r--.emacs.d/lisp/init-misc.el19
1 files changed, 17 insertions, 2 deletions
diff --git a/.emacs.d/lisp/init-misc.el b/.emacs.d/lisp/init-misc.el
index aab95f7..4275c5c 100644
--- a/.emacs.d/lisp/init-misc.el
+++ b/.emacs.d/lisp/init-misc.el
@@ -39,11 +39,16 @@
(xterm-mouse-mode 1) ;; Enable mouse
(tool-bar-mode -1)
(scroll-bar-mode -1)
+ ;; Auto reload buffers whenever they are updated externally
(global-auto-revert-mode t)
- (global-so-long-mode 1)
+ (global-so-long-mode 1) ;; Disable some modes when the files are so long
(recentf-mode)
(show-paren-mode)
- (fset 'yes-or-no-p 'y-or-n-p))
+ (fset 'yes-or-no-p 'y-or-n-p)
+ ;; Show column number in modeline
+ (column-number-mode)
+ ;; Show the size of file in modeline
+ (size-indication-mode))
'append)
(with-eval-after-load 'hideshow
@@ -77,4 +82,14 @@
(kbd "[g") 'flymake-goto-prev-error
(kbd "]g") 'flymake-goto-next-error))
+(add-hook 'after-init-hook #'winner-mode 'append)
+(with-eval-after-load 'evil
+ (evil-define-key 'normal 'global
+ (kbd "C-w u") 'winner-undo
+ (kbd "C-w C-u") 'winner-undo
+ (kbd "C-w U") 'winner-redo
+ (kbd "C-w C-U") 'winner-redo))
+
+(add-hook 'after-init-hook #'save-place-mode 'append)
+
(provide 'init-misc)