mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-27 14:23:43 -05:00
Electric-indent on words
This commit is contained in:
@@ -9,6 +9,10 @@
|
||||
(after! company-dict
|
||||
(add-to-list 'company-dict-minor-mode-list 'love-mode))
|
||||
|
||||
(add-hook! lua-mode
|
||||
(electric-indent-local-mode +1)
|
||||
(setq narf-electric-indent-words '("else" "end")))
|
||||
|
||||
(defun narf-inf-lua ()
|
||||
(lua-start-process "lua" "lua")
|
||||
(pop-to-buffer lua-process-buffer)))
|
||||
|
@@ -16,6 +16,10 @@
|
||||
;; Formatting
|
||||
(setq ruby-deep-indent-paren t)
|
||||
|
||||
(add-hook! ruby-mode
|
||||
(electric-indent-local-mode +1)
|
||||
(setq narf-electric-indent-words '("else" "end" "elseif")))
|
||||
|
||||
;; Don't interfere with my custom RET behavior
|
||||
(define-key ruby-mode-map [?\n] nil)
|
||||
|
||||
|
@@ -17,7 +17,9 @@
|
||||
|
||||
(define-repl! sh-mode narf/inf-shell)
|
||||
(add-hook! sh-mode 'flycheck-mode)
|
||||
(add-hook! sh-mode 'electric-indent-local-mode)
|
||||
(add-hook! sh-mode
|
||||
(electric-indent-local-mode +1)
|
||||
(setq narf-electric-indent-words '("else" "elif" "fi" "done")))
|
||||
|
||||
(require 'company-shell)
|
||||
|
||||
|
Reference in New Issue
Block a user