Minor refactor & revision across the board
This commit is contained in:
parent
4ce86b06d4
commit
81ee250c09
7 changed files with 13 additions and 10 deletions
10
bin/doom
10
bin/doom
|
@ -91,11 +91,11 @@
|
||||||
(doom-initialize 'force-p)
|
(doom-initialize 'force-p)
|
||||||
(doom-initialize-modules)
|
(doom-initialize-modules)
|
||||||
|
|
||||||
(cond ((and (not (cdr args))
|
(cond ((or (not args)
|
||||||
(member (car args) '("help" "h")))
|
(and (not (cdr args))
|
||||||
(usage))
|
(member (car args) '("help" "h"))))
|
||||||
((not args)
|
(unless args
|
||||||
(print! (error "No command detected.\n"))
|
(print! (error "No command detected.\n")))
|
||||||
(usage))
|
(usage))
|
||||||
((require 'core-cli)
|
((require 'core-cli)
|
||||||
(let ((default-directory user-emacs-directory))
|
(let ((default-directory user-emacs-directory))
|
||||||
|
|
|
@ -126,7 +126,7 @@ a list of packages that will be installed."
|
||||||
(lambda (&rest _) (cl-incf n)))
|
(lambda (&rest _) (cl-incf n)))
|
||||||
(let ((straight--packages-to-rebuild :all)
|
(let ((straight--packages-to-rebuild :all)
|
||||||
(straight--packages-not-to-rebuild (make-hash-table :test #'equal)))
|
(straight--packages-not-to-rebuild (make-hash-table :test #'equal)))
|
||||||
(straight-use-package (intern package) nil nil " "))
|
(straight-use-package (intern package) nil nil " "))
|
||||||
(straight--byte-compile-package recipe)
|
(straight--byte-compile-package recipe)
|
||||||
(dolist (dep (straight--get-dependencies package))
|
(dolist (dep (straight--get-dependencies package))
|
||||||
(when-let (recipe (gethash dep straight--recipe-cache))
|
(when-let (recipe (gethash dep straight--recipe-cache))
|
||||||
|
|
|
@ -5,6 +5,8 @@
|
||||||
(defun +multiple-cursors/evil-mc-toggle-cursors ()
|
(defun +multiple-cursors/evil-mc-toggle-cursors ()
|
||||||
"Toggle frozen state of evil-mc cursors."
|
"Toggle frozen state of evil-mc cursors."
|
||||||
(interactive)
|
(interactive)
|
||||||
|
(unless (evil-mc-has-cursors-p)
|
||||||
|
(user-error "No cursors exist to be toggled"))
|
||||||
(setq evil-mc-frozen (not (and (evil-mc-has-cursors-p)
|
(setq evil-mc-frozen (not (and (evil-mc-has-cursors-p)
|
||||||
evil-mc-frozen)))
|
evil-mc-frozen)))
|
||||||
(if evil-mc-frozen
|
(if evil-mc-frozen
|
||||||
|
|
|
@ -5,6 +5,6 @@
|
||||||
"Register minor MODES (one mode symbol or a list of them) with yasnippet so it
|
"Register minor MODES (one mode symbol or a list of them) with yasnippet so it
|
||||||
can have its own snippets category, if the folder exists."
|
can have its own snippets category, if the folder exists."
|
||||||
(dolist (mode (doom-enlist modes))
|
(dolist (mode (doom-enlist modes))
|
||||||
(let ((fn (intern (format "+snippets|register-%s" mode))))
|
(let ((fn (intern (format "+snippets-register-%s-h" mode))))
|
||||||
(fset fn (lambda () (yas-activate-extra-mode mode)))
|
(fset fn (lambda () (yas-activate-extra-mode mode)))
|
||||||
(add-hook (intern (format "%s-hook" mode)) fn))))
|
(add-hook (intern (format "%s-hook" mode)) fn))))
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
;; Use GNU ls as `gls' from `coreutils' if available. Add `(setq
|
;; Use GNU ls as `gls' from `coreutils' if available. Add `(setq
|
||||||
;; dired-use-ls-dired nil)' to your config to suppress the Dired warning
|
;; dired-use-ls-dired nil)' to your config to suppress the Dired warning
|
||||||
;; when not using GNU ls.
|
;; when not using GNU ls.
|
||||||
(if-let* ((gls (executable-find "gls")))
|
(if-let (gls (executable-find "gls"))
|
||||||
(setq insert-directory-program gls)
|
(setq insert-directory-program gls)
|
||||||
;; BSD ls doesn't support --group-directories-first
|
;; BSD ls doesn't support --group-directories-first
|
||||||
(setq args (delete "--group-directories-first" args))))
|
(setq args (delete "--group-directories-first" args))))
|
||||||
|
|
|
@ -38,6 +38,7 @@ capture, the end position, and the output buffer.")
|
||||||
(set-lookup-handlers! '(markdown-mode gfm-mode)
|
(set-lookup-handlers! '(markdown-mode gfm-mode)
|
||||||
:file #'markdown-follow-thing-at-point)
|
:file #'markdown-follow-thing-at-point)
|
||||||
|
|
||||||
|
;; Enable hard-wrapping. By convention, Doom does this for all textual modes.
|
||||||
(add-hook 'markdown-mode-hook #'auto-fill-mode)
|
(add-hook 'markdown-mode-hook #'auto-fill-mode)
|
||||||
|
|
||||||
;; Prevent mis-fontification of YAML metadata blocks in `markdown-mode' which
|
;; Prevent mis-fontification of YAML metadata blocks in `markdown-mode' which
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
|
|
||||||
;;
|
;;
|
||||||
;; Packages
|
;;; Packages
|
||||||
|
|
||||||
(use-package! sh-script ; built-in
|
(use-package! sh-script ; built-in
|
||||||
:mode ("\\.zunit\\'" . sh-mode)
|
:mode ("\\.zunit\\'" . sh-mode)
|
||||||
|
@ -43,7 +43,7 @@
|
||||||
(2 'font-lock-variable-name-face prepend))
|
(2 'font-lock-variable-name-face prepend))
|
||||||
(+sh--match-command-subst-in-quotes
|
(+sh--match-command-subst-in-quotes
|
||||||
(1 'sh-quoted-exec prepend))
|
(1 'sh-quoted-exec prepend))
|
||||||
(,(regexp-opt +sh-builtin-keywords 'words)
|
(,(regexp-opt +sh-builtin-keywords 'symbols)
|
||||||
(0 'font-lock-type-face append))))))
|
(0 'font-lock-type-face append))))))
|
||||||
;; 4. Fontify delimiters by depth
|
;; 4. Fontify delimiters by depth
|
||||||
(add-hook 'sh-mode-hook #'rainbow-delimiters-mode)
|
(add-hook 'sh-mode-hook #'rainbow-delimiters-mode)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue