Skip to content

Commit

Permalink
Fix #153
Browse files Browse the repository at this point in the history
  • Loading branch information
yuutayamada committed Aug 5, 2017
1 parent ddcc6f1 commit 26a2042
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nim-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,9 @@

;; Because indentation is not redundant, we cannot safely reindent code.
(setq-local electric-indent-inhibit t)
(setq-local electric-indent-chars '(?: ?\s))
;; ?\C-m ?\C-j: needed for `electric-indent-mode' to activate `newline-and-indent'
;; by Return/Enter key.
(setq-local electric-indent-chars '(?: ?\s ?\C-m ?\C-j))
(when electric-indent-mode
(define-key nim-mode-map [remap delete-backward-char] 'nim-electric-backspace)))

Expand Down

0 comments on commit 26a2042

Please sign in to comment.