lang/emacs-lisp: remove buggy read-only hook
Breaks package-install when it attempts to byte-compile package files.
This commit is contained in:
parent
7c3e4ffa0c
commit
34b4ff12f4
2 changed files with 1 additions and 11 deletions
|
@ -150,12 +150,3 @@ verbosity when editing a file in `doom-private-dir' or `doom-emacs-dir'."
|
|||
" "
|
||||
(default-value 'flycheck-emacs-lisp-check-form)
|
||||
")"))))
|
||||
|
||||
;;;###autoload
|
||||
(defun +emacs-lisp|read-only-packages ()
|
||||
"Enable `read-only-mode' if a package source file is opened.
|
||||
|
||||
Packages are in `doom-packages-dir'. They shouldn't be modified directly."
|
||||
(when-let* ((filename (buffer-file-name (buffer-base-buffer))))
|
||||
(when (file-in-directory-p filename doom-packages-dir)
|
||||
(read-only-mode +1))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue