diff options
Diffstat (limited to 'emacs-linum-relative.install')
-rw-r--r-- | emacs-linum-relative.install | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/emacs-linum-relative.install b/emacs-linum-relative.install new file mode 100644 index 000000000000..ccc59834cde2 --- /dev/null +++ b/emacs-linum-relative.install @@ -0,0 +1,28 @@ +post_install () { + +cat << EOF + +==> Add this code to your .emacs file to use the mode: + +(require 'linum-relative) +(global-linum-mode 1) +(linum-relative-on) + +==> If you want to see the current line number instead of an unhelpful "0": + +(setq linum-relative-current-symbol "") + +==> Or do the above with use-package: + +(use-package linum-relative + :config + (global-linum-mode 1) + (linum-relative-on) + (setq linum-relative-current-symbol "")) ; For current line number + +EOF +} + +post_upgrade () { + post_install $1 +} |