summarylogtreecommitdiffstats
path: root/emacs-linum-relative.install
blob: ccc59834cde26cb0ba4b72e412750420689f5a1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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
}