summarylogtreecommitdiffstats
path: root/emacs-top-mode.install
blob: a9f6223d11ad3bfec2adb1848d3ee04e598350f0 (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 'top-mode)

==> Or, with use-package:

(use-package top-mode)

==> A function to auto-refresh:

(defun top-auto-refresh (rate)
  (interactive "nTop refresh rate (seconds): ")
  (progn
    (cancel-function-timers 'top)
    (if (not (zerop rate))
        (setq *top-refresh-timer*
              (run-with-timer 2 rate 'top)))))

EOF
}

post_upgrade () {
	post_install $1
}