Big refactor

This commit is contained in:
Case Duckworth 2021-09-03 21:49:48 -05:00
parent 85abc71bc2
commit 9b1789697d
3 changed files with 525 additions and 589 deletions

View File

@ -224,7 +224,14 @@ package. This macro is not repeatable."
:repeatable nil
:shorthand (lambda (sexp)
(let ((recipe (cadr sexp)))
(if (consp recipe) (car recipe) recipe)))))
(if (consp recipe) (car recipe) recipe))))
;; Hotfix
(setup-define :file-match
(lambda (pat)
`(add-to-list 'auto-mode-alist (cons ,pat ',(setup-get 'mode))))
:documentation "Associate the current mode with files that match PAT."
:debug '(form)
:repeatable t))
;;; `no-littering'
(setup (:straight no-littering)

1100
init.el

File diff suppressed because it is too large Load Diff

View File

@ -173,6 +173,11 @@ is, if point < mark."
(if-let ((backend (vc-backend buffer-file-name)))
(substring vc-mode (+ (if (eq backend 'Hg) 2 3) 2))))
(defun acdw-modeline/wc ()
"Display current `wc-buffer-stats'."
(when (bound-and-true-p wc-mode)
(or wc-buffer-stats "[w]")))
(defun acdw-modeline/winum ()
"Show the `winum' number of the current window in the modeline.
Only shows if there is more than one window."