Skip to content

Commit

Permalink
Merge: (ement-room-mode-hook) Define separately
Browse files Browse the repository at this point in the history
  • Loading branch information
alphapapa committed Apr 16, 2024
2 parents beb29c5 + 6f8c841 commit 0028010
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ement-room.el
Original file line number Diff line number Diff line change
Expand Up @@ -2565,6 +2565,14 @@ the previously oldest event."
;; We don't really care about the response, I think.
:then #'ignore)))

(defcustom ement-room-mode-hook nil
;; Due to Emacs bug#68600, define the mode hook separately to avoid the mode
;; line constructs in the `ement-room-mode' mode name being copied verbatim
;; into the auto-generated docstring.
"Hook run after entering `ement-room-mode'."
:options '(visual-line-mode)
:type 'hook)

(define-derived-mode ement-room-mode fundamental-mode
`("Ement-Room"
(:eval (unless (map-elt ement-syncs ement-session)
Expand Down

0 comments on commit 0028010

Please sign in to comment.