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))))
|
||||
|
|
|
@ -50,8 +50,7 @@ This marks a foldable marker for `outline-minor-mode' in elisp buffers.")
|
|||
rainbow-delimiters-mode
|
||||
highlight-quoted-mode
|
||||
;; initialization
|
||||
+emacs-lisp|extend-imenu
|
||||
+emacs-lisp|read-only-packages))
|
||||
+emacs-lisp|extend-imenu))
|
||||
|
||||
;; Flycheck's two emacs-lisp checkers produce a *lot* of false positives in
|
||||
;; emacs configs, so we disable `emacs-lisp-checkdoc' and reduce the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue