Add shell script mode config
This commit is contained in:
parent
5bdf8469ea
commit
216ee6c68f
2 changed files with 20 additions and 0 deletions
|
@ -707,6 +707,13 @@ To start off, first I need to enable lexical binding.
|
|||
(with-eval-after-load 'php-mode (load "php-mode-init"))
|
||||
#+END_SRC
|
||||
|
||||
- [[file:init/sh-mode-init.org][sh-mode]] :: Used for most types of shell scripting (bash, zsh,
|
||||
etc.).
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(with-eval-after-load 'sh-mode (load "sh-mode-init"))
|
||||
#+END_SRC
|
||||
|
||||
** Emacs lisp mode
|
||||
|
||||
Enable paredit mode.
|
||||
|
|
13
emacs/.emacs.d/init/sh-mode-init.org
Normal file
13
emacs/.emacs.d/init/sh-mode-init.org
Normal file
|
@ -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
|
Loading…
Reference in a new issue