summarylogtreecommitdiffstats
path: root/emacs-highlight-indentation.install
diff options
context:
space:
mode:
Diffstat (limited to 'emacs-highlight-indentation.install')
-rw-r--r--emacs-highlight-indentation.install25
1 files changed, 25 insertions, 0 deletions
diff --git a/emacs-highlight-indentation.install b/emacs-highlight-indentation.install
new file mode 100644
index 000000000000..b1debe6f136f
--- /dev/null
+++ b/emacs-highlight-indentation.install
@@ -0,0 +1,25 @@
+post_install () {
+
+cat << EOF
+
+==> Add this code to your .emacs file to use the mode:
+
+(require 'highlight-indentation)
+
+==> Might be a good idea to automatically enable this mode for programming buffers:
+
+(add-hook 'prog-mode-hook #'highlight-indentation-current-column-mode) ; For current column only. My preference. Or:
+(add-hook 'prog-mode-hook #'highlight-indentation-mode) ; To highlight every indentation level
+
+==> Or do the above with use-package:
+
+(use-package highlight-indentation
+ :config
+ (add-hook 'prog-mode-hook #'highlight-indentation-current-column-mode)) ; For programming buffers
+
+EOF
+}
+
+post_upgrade () {
+ post_install $1
+}