aboutsummaryrefslogtreecommitdiffstats
path: root/emacs/.emacs.d/init/sh-mode-init.org
diff options
context:
space:
mode:
authorGravatar Tom Willemse2016-10-14 00:57:27 +0200
committerGravatar Tom Willemse2016-10-14 00:57:27 +0200
commit216ee6c68fa0c2bf8f9def414cad9855838c89b1 (patch)
treedd9f72d7e90b1405b0417ef416109a011d9e2cf4 /emacs/.emacs.d/init/sh-mode-init.org
parent5bdf8469ea218a071ba91413b2b6518bac684b84 (diff)
downloadnew-dotfiles-216ee6c68fa0c2bf8f9def414cad9855838c89b1.tar.gz
new-dotfiles-216ee6c68fa0c2bf8f9def414cad9855838c89b1.zip
Add shell script mode config
Diffstat (limited to 'emacs/.emacs.d/init/sh-mode-init.org')
-rw-r--r--emacs/.emacs.d/init/sh-mode-init.org13
1 files changed, 13 insertions, 0 deletions
diff --git a/emacs/.emacs.d/init/sh-mode-init.org b/emacs/.emacs.d/init/sh-mode-init.org
new file mode 100644
index 0000000..6a9f394
--- /dev/null
+++ b/emacs/.emacs.d/init/sh-mode-init.org
@@ -0,0 +1,13 @@
+#+TITLE: Shell Script
+
+Enable electric pairing in shell script buffers.
+
+#+BEGIN_SRC emacs-lisp
+ (add-hook 'sh-mode-hook 'electric-pair-local-mode)
+#+END_SRC
+
+Enable electric indentation in shell script buffers.
+
+#+BEGIN_SRC emacs-lisp
+ (add-hook 'sh-mode-hook 'electric-indent-local-mode)
+#+END_SRC