summarylogtreecommitdiffstats
path: root/emacs-winum.install
diff options
context:
space:
mode:
Diffstat (limited to 'emacs-winum.install')
-rw-r--r--emacs-winum.install30
1 files changed, 30 insertions, 0 deletions
diff --git a/emacs-winum.install b/emacs-winum.install
new file mode 100644
index 000000000000..8d1dc70fc938
--- /dev/null
+++ b/emacs-winum.install
@@ -0,0 +1,30 @@
+post_install () {
+
+cat << EOF
+
+==> Add this code to your .emacs file to use the mode:
+
+(require 'winum)
+(winum-mode)
+
+==> If you are using spaceline or another modeline modifier that
+ references winum internally, put this before your initialization
+ of winum:
+
+(setq winum-auto-setup-mode-line nil)
+
+==> Or do the above with use-package:
+
+(use-package winum
+ :init
+ (setq winum-auto-setup-mode-line nil) ;If using spaceline or the like
+
+ :config
+ (winum-mode))
+
+EOF
+}
+
+post_upgrade () {
+ post_install $1
+}