lang/latex: fix removal of master file prompt
It makes me sad that this is necessary. Friends don't let friends use anonymous functions for their package's hooks.
This commit is contained in:
parent
9e85acec2c
commit
4a0b98ef1c
1 changed files with 6 additions and 4 deletions
|
@ -54,10 +54,12 @@
|
|||
|
||||
(define-key LaTeX-mode-map "\C-j" nil)
|
||||
|
||||
;; Do not prompt for Master files, this allows auto-insert to add templates
|
||||
;; to .tex files
|
||||
(add-hook! '(LaTeX-mode TeX-mode)
|
||||
(remove-hook 'find-file-hook (car find-file-hook) 'local))
|
||||
;; Do not prompt for Master files, this allows auto-insert to add templates to
|
||||
;; .tex files
|
||||
(add-hook! '(LaTeX-mode-hook TeX-mode-hook)
|
||||
(remove-hook 'find-file-hook
|
||||
(cl-find-if #'byte-code-function-p find-file-hook)
|
||||
'local))
|
||||
;; Adding useful things for latex
|
||||
(add-hook! 'LaTeX-mode-hook
|
||||
#'(LaTeX-math-mode
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue