mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
lang/emacs-lisp: remove buggy read-only hook
Breaks package-install when it attempts to byte-compile package files.
This commit is contained in:
@ -150,12 +150,3 @@ verbosity when editing a file in `doom-private-dir' or `doom-emacs-dir'."
|
|||||||
" "
|
" "
|
||||||
(default-value 'flycheck-emacs-lisp-check-form)
|
(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
|
rainbow-delimiters-mode
|
||||||
highlight-quoted-mode
|
highlight-quoted-mode
|
||||||
;; initialization
|
;; initialization
|
||||||
+emacs-lisp|extend-imenu
|
+emacs-lisp|extend-imenu))
|
||||||
+emacs-lisp|read-only-packages))
|
|
||||||
|
|
||||||
;; Flycheck's two emacs-lisp checkers produce a *lot* of false positives in
|
;; Flycheck's two emacs-lisp checkers produce a *lot* of false positives in
|
||||||
;; emacs configs, so we disable `emacs-lisp-checkdoc' and reduce the
|
;; emacs configs, so we disable `emacs-lisp-checkdoc' and reduce the
|
||||||
|
Reference in New Issue
Block a user