diff options
Diffstat (limited to 'init.el')
-rw-r--r-- | init.el | 62 |
1 files changed, 61 insertions, 1 deletions
diff --git a/init.el b/init.el index 57657fe..631ae3d 100644 --- a/init.el +++ b/init.el | |||
@@ -16,10 +16,13 @@ | |||
16 | 16 | ||
17 | ;;; Code: | 17 | ;;; Code: |
18 | 18 | ||
19 | ;; Delete when no longer ... remacs'd | ||
19 | ;; Require early-init.el just in case it hasn't been yet. | 20 | ;; Require early-init.el just in case it hasn't been yet. |
20 | (require 'early-init (locate-user-emacs-file "early-init.el") :noerror) | 21 | (require 'early-init (locate-user-emacs-file "early-init.el") :noerror) |
22 | |||
21 | ;; Requre my private stuff | 23 | ;; Requre my private stuff |
22 | (require 'private) | 24 | (require 'private) |
25 | (setq debug-on-error t) | ||
23 | 26 | ||
24 | (setup (:require +defaults)) | 27 | (setup (:require +defaults)) |
25 | 28 | ||
@@ -72,6 +75,20 @@ | |||
72 | (with-eval-after-load 'frowny | 75 | (with-eval-after-load 'frowny |
73 | (add-to-list 'frowny-inhibit-modes 'dired-mode))) | 76 | (add-to-list 'frowny-inhibit-modes 'dired-mode))) |
74 | 77 | ||
78 | (setup eldoc | ||
79 | (:hook-into elisp-mode | ||
80 | lisp-interaction-mode)) | ||
81 | |||
82 | (setup elisp-mode | ||
83 | (:also-load +elisp) | ||
84 | (:option eval-expression-print-length nil | ||
85 | eval-expression-print-level nil) | ||
86 | (:with-map (emacs-lisp-mode-map lisp-interaction-mode-map) | ||
87 | (:bind "C-c C-c" 'eval-defun | ||
88 | "C-c C-k" '+elisp-eval-region-or-buffer | ||
89 | "C-c C-z" 'ielm)) | ||
90 | (advice-add 'eval-region :around '+eval-region@pulse)) | ||
91 | |||
75 | (setup eshell | 92 | (setup eshell |
76 | (:also-load +eshell | 93 | (:also-load +eshell |
77 | em-smart | 94 | em-smart |
@@ -108,6 +125,22 @@ | |||
108 | '("tildegit.org" "tildegit.org/api/v1" "tildegit.org" | 125 | '("tildegit.org" "tildegit.org/api/v1" "tildegit.org" |
109 | forge-gitea-repository))))) | 126 | forge-gitea-repository))))) |
110 | 127 | ||
128 | (setup prog | ||
129 | (:local-set comment-auto-fill-only-comments t) | ||
130 | (:hook 'prettify-symbols-mode | ||
131 | 'display-fill-column-indicator-mode | ||
132 | 'turn-on-auto-fill)) | ||
133 | |||
134 | (setup pulse | ||
135 | (:also-load +pulse) | ||
136 | (:option pulse-flag nil | ||
137 | pulse-delay 0.5 | ||
138 | pulse-iterations 1) | ||
139 | (+pulse-location-mode +1)) | ||
140 | |||
141 | (setup text | ||
142 | (:hook 'turn-on-auto-fill)) | ||
143 | |||
111 | (setup (:straight 0x0) | 144 | (setup (:straight 0x0) |
112 | (:option 0x0-default-server 'ttm) | 145 | (:option 0x0-default-server 'ttm) |
113 | (with-eval-after-load 'embark | 146 | (with-eval-after-load 'embark |
@@ -118,6 +151,7 @@ | |||
118 | ) | 151 | ) |
119 | 152 | ||
120 | (setup (:straight anzu) | 153 | (setup (:straight anzu) |
154 | (:option anzu-cons-mode-line-p nil) | ||
121 | (:global [remap query-replace] 'anzu-query-replace-regexp | 155 | (:global [remap query-replace] 'anzu-query-replace-regexp |
122 | [remap query-replace-regexp] 'anzu-query-replace-regexp) | 156 | [remap query-replace-regexp] 'anzu-query-replace-regexp) |
123 | (global-anzu-mode +1) | 157 | (global-anzu-mode +1) |
@@ -348,7 +382,7 @@ | |||
348 | (:option prefix-help-command 'embark-prefix-help-command) | 382 | (:option prefix-help-command 'embark-prefix-help-command) |
349 | (:global "C-." 'embark-act | 383 | (:global "C-." 'embark-act |
350 | "M-." 'embark-dwim | 384 | "M-." 'embark-dwim |
351 | "C-h B" 'embark-bindings)) | 385 | "<help> B" 'embark-bindings)) |
352 | 386 | ||
353 | (setup (:straight embark-consult) | 387 | (setup (:straight embark-consult) |
354 | (:load-after consult embark) | 388 | (:load-after consult embark) |
@@ -565,6 +599,25 @@ | |||
565 | "M-!" 'shell-command+) | 599 | "M-!" 'shell-command+) |
566 | (:global "M-!" 'shell-command+)) | 600 | (:global "M-!" 'shell-command+)) |
567 | 601 | ||
602 | (setup (:straight (simple-modeline | ||
603 | :fork (:repo "duckwork/simple-modeline"))) | ||
604 | (:also-load +modeline) | ||
605 | (:option simple-modeline-segments '((;; left | ||
606 | +modeline-modified | ||
607 | +modeline-buffer-name | ||
608 | +modeline-position | ||
609 | +modeline-anzu | ||
610 | ) | ||
611 | (;; right | ||
612 | +modeline-track | ||
613 | +modeline-vc | ||
614 | simple-modeline-segment-misc-info | ||
615 | simple-modeline-segment-process | ||
616 | +modeline-narrowed | ||
617 | +modeline-minions | ||
618 | +modeline-major-mode))) | ||
619 | (simple-modeline-mode +1)) | ||
620 | |||
568 | (setup (:straight (sophomore | 621 | (setup (:straight (sophomore |
569 | :host github | 622 | :host github |
570 | :repo "duckwork/sophomore.el")) | 623 | :repo "duckwork/sophomore.el")) |
@@ -637,3 +690,10 @@ | |||
637 | (:option whitespace-cleanup-mode-preserve-point t) | 690 | (:option whitespace-cleanup-mode-preserve-point t) |
638 | (remove-hook 'before-save-hook 'whitespace-cleanup) | 691 | (remove-hook 'before-save-hook 'whitespace-cleanup) |
639 | (global-whitespace-cleanup-mode +1)) | 692 | (global-whitespace-cleanup-mode +1)) |
693 | |||
694 | (setup (:straight zzz-to-char) | ||
695 | (:global "M-z" (lambda (prefix) | ||
696 | "Call `zzz-to-char' or `zzz-up-to-char' with PREFIX arg." | ||
697 | (interactive "P") | ||
698 | (call-interactively | ||
699 | (if prefix #'zzz-up-to-char #'zzz-to-char))))) | ||