General comment revision & cleanup
This commit is contained in:
parent
d559377534
commit
3b7711420f
5 changed files with 12 additions and 9 deletions
|
@ -111,8 +111,8 @@ successfully sets indent_style/indent_size.")
|
||||||
;;
|
;;
|
||||||
;; This is because autorevert abuses the heck out of inotify handles which can
|
;; This is because autorevert abuses the heck out of inotify handles which can
|
||||||
;; grind Emacs to a halt if you do expensive IO (outside of Emacs) on the
|
;; grind Emacs to a halt if you do expensive IO (outside of Emacs) on the
|
||||||
;; files you have open (like compression). We only really need revert changes
|
;; files you have open (like compression). We only really need to revert
|
||||||
;; when we switch to a buffer or when we focus the Emacs frame.
|
;; changes when we switch to a buffer or when we focus the Emacs frame.
|
||||||
(defun doom-auto-revert-buffer-h ()
|
(defun doom-auto-revert-buffer-h ()
|
||||||
"Auto revert current buffer, if necessary."
|
"Auto revert current buffer, if necessary."
|
||||||
(unless auto-revert-mode
|
(unless auto-revert-mode
|
||||||
|
|
|
@ -146,7 +146,9 @@ users).")
|
||||||
;; to, it's our (the user's) failure. One case for all!
|
;; to, it's our (the user's) failure. One case for all!
|
||||||
(setq auto-mode-case-fold nil)
|
(setq auto-mode-case-fold nil)
|
||||||
|
|
||||||
;; Enable all disabled commands.
|
;; Some commands are disabled and emit a warning whenever they are used. Let's
|
||||||
|
;; assume the user always knows what they're doing (hahahaha) and enable all
|
||||||
|
;; disabled commands.
|
||||||
(setq disabled-command-function nil)
|
(setq disabled-command-function nil)
|
||||||
|
|
||||||
;; Display the bare minimum at startup. We don't need all that noise. The
|
;; Display the bare minimum at startup. We don't need all that noise. The
|
||||||
|
|
|
@ -9,6 +9,8 @@
|
||||||
(package! all-the-icons)
|
(package! all-the-icons)
|
||||||
(package! hide-mode-line)
|
(package! hide-mode-line)
|
||||||
(package! highlight-numbers)
|
(package! highlight-numbers)
|
||||||
|
;; Some early 26.x builds of Emacs do not have `display-line-numbers' yet, so
|
||||||
|
;; check for it instead of Emacs' version.
|
||||||
(unless (locate-library "display-line-numbers")
|
(unless (locate-library "display-line-numbers")
|
||||||
(package! nlinum)
|
(package! nlinum)
|
||||||
(package! nlinum-hl)
|
(package! nlinum-hl)
|
||||||
|
|
|
@ -54,7 +54,7 @@
|
||||||
[remap quit-window] #'kill-current-buffer)
|
[remap quit-window] #'kill-current-buffer)
|
||||||
|
|
||||||
(:map (help-mode-map helpful-mode-map)
|
(:map (help-mode-map helpful-mode-map)
|
||||||
:n "o" 'ace-link-help)
|
:n "o" #'ace-link-help)
|
||||||
|
|
||||||
;; misc
|
;; misc
|
||||||
:n "C-S-f" #'toggle-frame-fullscreen
|
:n "C-S-f" #'toggle-frame-fullscreen
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
;;
|
;;
|
||||||
;;; Third-party plugins
|
;;; Third-party plugins
|
||||||
|
|
||||||
;; `csv-mode'
|
;;;###package csv-mode
|
||||||
(map! :after csv-mode
|
(map! :after csv-mode
|
||||||
:localleader
|
:localleader
|
||||||
:map csv-mode-map
|
:map csv-mode-map
|
||||||
|
@ -37,13 +37,12 @@
|
||||||
:config
|
:config
|
||||||
(set-electric! 'json-mode :chars '(?\n ?: ?{ ?})))
|
(set-electric! 'json-mode :chars '(?\n ?: ?{ ?})))
|
||||||
|
|
||||||
(use-package! jsonnet-mode
|
(after! jsonnet-mode
|
||||||
:defer t
|
|
||||||
:config
|
|
||||||
(set-electric! 'jsonnet-mode :chars '(?\n ?: ?{ ?})))
|
(set-electric! 'jsonnet-mode :chars '(?\n ?: ?{ ?})))
|
||||||
|
|
||||||
|
|
||||||
;;
|
;;
|
||||||
;; Frameworks
|
;;; Frameworks
|
||||||
|
|
||||||
(def-project-mode! +data-vagrant-mode
|
(def-project-mode! +data-vagrant-mode
|
||||||
:files ("Vagrantfile"))
|
:files ("Vagrantfile"))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue