diff options
Diffstat (limited to 'init.org')
-rw-r--r-- | init.org | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -1233,18 +1233,17 @@ Here are a few commands that I used pretty often: (global-set-key (kbd "C-c n") 'my/new-empty-buffer) ;; http://whattheemacsd.com/key-bindings.el-01.html#disqus_thread -(require 'linum) (defun my/goto-line-with-feedback () "Show line numbers temporarily, while prompting for the line number input" (interactive) - (let ((line-numbers-off-p (not linum-mode))) + (let ((line-numbers-off-p (not display-line-numbers-mode))) (unwind-protect (progn (when line-numbers-off-p - (linum-mode 1)) + (display-line-numbers-mode 1)) (call-interactively 'goto-line)) (when line-numbers-off-p - (linum-mode -1))))) + (display-line-numbers-mode -1))))) (global-set-key [remap goto-line] 'my/goto-line-with-feedback) ;; kill current buffer |