Skip to content

Commit

Permalink
Disable continue-comments-on-RET in ess-r-mode & coq-mode
Browse files Browse the repository at this point in the history
  • Loading branch information
hlissner committed Dec 27, 2019
1 parent e5fa19e commit 566d54d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
10 changes: 7 additions & 3 deletions modules/lang/coq/config.el
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,13 @@


;;;###package coq
;; Doom syncs other indent variables with `tab-width'; we trust major modes to
;; set it -- which most of them do -- but coq-mode doesn't, so...
(setq-hook! 'coq-mode-hook tab-width proof-indent)
(setq-hook! 'coq-mode-hook
;; Doom syncs other indent variables with `tab-width'; we trust major modes to
;; set it -- which most of them do -- but coq-mode doesn't, so...
tab-width proof-indent
;; HACK Fix #2081: Doom continues comments on RET, but coq-mode doesn't have a
;; sane `comment-line-break-function', so...
comment-line-break-function nil)

;; We've replaced coq-mode abbrevs with yasnippet snippets (in the snippets
;; library included with Doom).
Expand Down
5 changes: 5 additions & 0 deletions modules/lang/ess/config.el
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@
(set-eval-handler! 'ess-help-mode #'ess-eval-region-and-go)
(set-eval-handler! 'ess-r-help-mode #'ess-eval-region-and-go)

(setq-hook! 'ess-r-mode-hook
;; HACK Fix #2233: Doom continues comments on RET, but ess-r-mode doesn't
;; have a sane `comment-line-break-function', so...
comment-line-break-function nil)

(map! (:after ess-help
:map ess-help-mode-map
:n "q" #'kill-current-buffer
Expand Down

0 comments on commit 566d54d

Please sign in to comment.