Skip to content

Commit

Permalink
hack dir local variables in major modes
Browse files Browse the repository at this point in the history
In all major modes, apply dir local variables.
  • Loading branch information
Hugo-Heagren authored and joostkremers committed Jul 23, 2024
1 parent 5ab87f0 commit 02454c4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ebib.el
Original file line number Diff line number Diff line change
Expand Up @@ -1166,6 +1166,7 @@ there for details."
(define-derived-mode ebib-index-mode
fundamental-mode "Ebib-index"
"Major mode for the Ebib index buffer."
(hack-dir-local-variables-non-file-buffer)
(setq buffer-read-only t)
(if ebib-hide-cursor
(setq cursor-type nil))
Expand Down Expand Up @@ -3910,6 +3911,7 @@ hook `ebib-reading-list-remove-item-hook' is run."
(define-derived-mode ebib-entry-mode
fundamental-mode "Ebib"
"Major mode for the Ebib entry buffer."
(hack-dir-local-variables-non-file-buffer)
(setq buffer-read-only t)
(if ebib-hide-cursor
(setq cursor-type nil))
Expand Down Expand Up @@ -4810,6 +4812,7 @@ arguments for compatibility with `ebib-field-edit-functions'."
(define-derived-mode ebib-strings-mode
fundamental-mode "Ebib-strings"
"Major mode for the Ebib strings buffer."
(hack-dir-local-variables-non-file-buffer)
(setq buffer-read-only t)
(if ebib-hide-cursor
(setq cursor-type nil))
Expand Down Expand Up @@ -5221,6 +5224,7 @@ The text being edited is stored before saving the database."
(define-derived-mode ebib-log-mode
fundamental-mode "Ebib-log"
"Major mode for the Ebib log buffer."
(hack-dir-local-variables-non-file-buffer)
(local-set-key "\C-xb" 'ebib-quit-log-buffer)
(local-set-key "\C-xk" 'ebib-quit-log-buffer)
(ebib-set-default-dir))
Expand Down

0 comments on commit 02454c4

Please sign in to comment.