diff options
author | Case Duckworth | 2021-02-09 22:58:00 -0600 |
---|---|---|
committer | Case Duckworth | 2021-02-09 23:00:46 -0600 |
commit | e46fa16ccc8ab4e4063d7ade683bf0e66c17f35f (patch) | |
tree | 67307242b696c31a947f03a43affcdbf8aa0c545 | |
parent | Configure flyspell (diff) | |
download | emacs-e46fa16ccc8ab4e4063d7ade683bf0e66c17f35f.tar.gz emacs-e46fa16ccc8ab4e4063d7ade683bf0e66c17f35f.zip |
Whitespace
-rw-r--r-- | config.org | 55 |
1 files changed, 26 insertions, 29 deletions
diff --git a/config.org b/config.org index 4a7a391..4ffdeab 100644 --- a/config.org +++ b/config.org | |||
@@ -205,13 +205,12 @@ This is extremely fiddly and I'd love another option. | |||
205 | split-height-threshold 50) | 205 | split-height-threshold 50) |
206 | #+end_src | 206 | #+end_src |
207 | 207 | ||
208 | *** Switch to other window or buffer :crux: | 208 | *** Switch to other window or buffer :crux: |
209 | 209 | ||
210 | #+begin_src emacs-lisp :noweb-ref bindings | 210 | #+begin_src emacs-lisp :noweb-ref bindings |
211 | (define-key acdw/map (kbd "M-o") #'crux-other-window-or-switch-buffer) | 211 | (define-key acdw/map (kbd "M-o") #'crux-other-window-or-switch-buffer) |
212 | #+end_src | 212 | #+end_src |
213 | 213 | ||
214 | |||
215 | *** The *Help* window | 214 | *** The *Help* window |
216 | 215 | ||
217 | I want to select the *Help* window by default, so I can easily quit it. | 216 | I want to select the *Help* window by default, so I can easily quit it. |
@@ -220,8 +219,6 @@ I want to select the *Help* window by default, so I can easily quit it. | |||
220 | (setq-default help-window-select t) | 219 | (setq-default help-window-select t) |
221 | #+end_src | 220 | #+end_src |
222 | 221 | ||
223 | |||
224 | |||
225 | ** Buffers | 222 | ** Buffers |
226 | 223 | ||
227 | *** Uniquify buffers | 224 | *** Uniquify buffers |
@@ -274,7 +271,7 @@ function to the =kill-buffer-query-functions= hook that will return | |||
274 | (add-hook 'kill-buffer-query-functions #'immortal-scratch) | 271 | (add-hook 'kill-buffer-query-functions #'immortal-scratch) |
275 | #+end_src | 272 | #+end_src |
276 | 273 | ||
277 | *** An /even better/ scratch buffer :package: | 274 | *** An /even better/ scratch buffer :package: |
278 | 275 | ||
279 | The aptly-named =scratch= pops open a new scratch buffer /with the same | 276 | The aptly-named =scratch= pops open a new scratch buffer /with the same |
280 | mode as the file you're currently editing/. I'm pretty chuffed about | 277 | mode as the file you're currently editing/. I'm pretty chuffed about |
@@ -414,7 +411,7 @@ underline below all the text. | |||
414 | (setq-default x-underline-at-descent-line t) | 411 | (setq-default x-underline-at-descent-line t) |
415 | #+end_src | 412 | #+end_src |
416 | 413 | ||
417 | *** Unicode fonts :package: | 414 | *** Unicode fonts :package: |
418 | 415 | ||
419 | =unicode-fonts= pulls in some other packages that still require the | 416 | =unicode-fonts= pulls in some other packages that still require the |
420 | deprecated =cl= library. So, I've forked those libraries to require | 417 | deprecated =cl= library. So, I've forked those libraries to require |
@@ -506,7 +503,7 @@ issue. | |||
506 | (add-hook 'after-make-frame-functions #'hook--unicode-fonts-setup) | 503 | (add-hook 'after-make-frame-functions #'hook--unicode-fonts-setup) |
507 | #+end_src | 504 | #+end_src |
508 | 505 | ||
509 | *** Draw form-feeds (=^L=) properly :package: | 506 | *** Draw form-feeds (=^L=) properly :package: |
510 | 507 | ||
511 | #+begin_src emacs-lisp :noweb-ref packages | 508 | #+begin_src emacs-lisp :noweb-ref packages |
512 | (straight-use-package 'form-feed) | 509 | (straight-use-package 'form-feed) |
@@ -519,7 +516,7 @@ issue. | |||
519 | 516 | ||
520 | ** Theming | 517 | ** Theming |
521 | 518 | ||
522 | *** Modus themes :package: | 519 | *** Modus themes :package: |
523 | 520 | ||
524 | I want the git version. | 521 | I want the git version. |
525 | 522 | ||
@@ -571,7 +568,7 @@ I want the git version. | |||
571 | 568 | ||
572 | *** Mode line | 569 | *** Mode line |
573 | 570 | ||
574 | **** Simple modeline :package: | 571 | **** Simple modeline :package: |
575 | 572 | ||
576 | After trying =doom-mode-line= and =smart-mode-line=, I think I've finally | 573 | After trying =doom-mode-line= and =smart-mode-line=, I think I've finally |
577 | landed on a good one: =simple-modeline=. | 574 | landed on a good one: =simple-modeline=. |
@@ -629,7 +626,7 @@ How is this not built into Emacs? Oh well, I have [[https://github.com/jamesnvc | |||
629 | (advice-add 'select-window :after #'cogent-line-set-selected-window) | 626 | (advice-add 'select-window :after #'cogent-line-set-selected-window) |
630 | #+end_src | 627 | #+end_src |
631 | 628 | ||
632 | **** Blackout some modes :package: | 629 | **** Blackout some modes :package: |
633 | 630 | ||
634 | Like =diminish= or =delight=, =blackout= allows me to remove some | 631 | Like =diminish= or =delight=, =blackout= allows me to remove some |
635 | minor-modes from the modeline. | 632 | minor-modes from the modeline. |
@@ -750,7 +747,7 @@ to /hide/ those contents. | |||
750 | read-file-name-completion-ignore-case t) | 747 | read-file-name-completion-ignore-case t) |
751 | #+end_src | 748 | #+end_src |
752 | 749 | ||
753 | *** Selectrum :package: | 750 | *** Selectrum :package: |
754 | 751 | ||
755 | *COMMENT 2021-02-01*: For some reason, selectrum will randomly do a thing where | 752 | *COMMENT 2021-02-01*: For some reason, selectrum will randomly do a thing where |
756 | it, like, flashes up and down in the minibuffer? I don't know how to explain | 753 | it, like, flashes up and down in the minibuffer? I don't know how to explain |
@@ -781,7 +778,7 @@ for now .... I just want to see my completions. | |||
781 | (icomplete-vertical-mode +1) | 778 | (icomplete-vertical-mode +1) |
782 | #+end_src | 779 | #+end_src |
783 | 780 | ||
784 | *** Prescient :package: | 781 | *** Prescient :package: |
785 | 782 | ||
786 | #+begin_src emacs-lisp :noweb-ref packages | 783 | #+begin_src emacs-lisp :noweb-ref packages |
787 | (straight-use-package 'prescient) | 784 | (straight-use-package 'prescient) |
@@ -807,7 +804,7 @@ Let's have =prescient= and =selectrum= work together. | |||
807 | (selectrum-prescient-mode +1)) | 804 | (selectrum-prescient-mode +1)) |
808 | #+end_src | 805 | #+end_src |
809 | 806 | ||
810 | *** Consult :package: | 807 | *** Consult :package: |
811 | 808 | ||
812 | #+begin_src emacs-lisp :noweb-ref modes | 809 | #+begin_src emacs-lisp :noweb-ref modes |
813 | (straight-use-package 'consult) | 810 | (straight-use-package 'consult) |
@@ -859,7 +856,7 @@ default completion system. These all come from the [[https://github.com/minad/c | |||
859 | register-preview-function #'consult-register-preview) | 856 | register-preview-function #'consult-register-preview) |
860 | #+end_src | 857 | #+end_src |
861 | 858 | ||
862 | *** Marginalia :package: | 859 | *** Marginalia :package: |
863 | 860 | ||
864 | Finally, =marginalia= provides extra information about completion | 861 | Finally, =marginalia= provides extra information about completion |
865 | candidates. | 862 | candidates. |
@@ -959,7 +956,7 @@ generally use it as a leader for entering applications. | |||
959 | (run-hooks 'acdw/leader-defined-hook) | 956 | (run-hooks 'acdw/leader-defined-hook) |
960 | #+end_src | 957 | #+end_src |
961 | 958 | ||
962 | *** Show keybindings with =which-key= :package: | 959 | *** Show keybindings with =which-key= :package: |
963 | 960 | ||
964 | #+begin_src emacs-lisp :noweb-ref packages | 961 | #+begin_src emacs-lisp :noweb-ref packages |
965 | (straight-use-package 'which-key) | 962 | (straight-use-package 'which-key) |
@@ -989,7 +986,7 @@ for a program that values freedom so much. | |||
989 | (setq-default disabled-command-function nil) | 986 | (setq-default disabled-command-function nil) |
990 | #+end_src | 987 | #+end_src |
991 | 988 | ||
992 | ** CRUX :package:crux: | 989 | ** CRUX :package:crux: |
993 | 990 | ||
994 | A collection of generally-useful functions that I don't want to bother | 991 | A collection of generally-useful functions that I don't want to bother |
995 | including here myself. This is kind of an experiment, to be honest. | 992 | including here myself. This is kind of an experiment, to be honest. |
@@ -1116,7 +1113,7 @@ the user is looking at something else. | |||
1116 | 1113 | ||
1117 | ** Garbage collection | 1114 | ** Garbage collection |
1118 | 1115 | ||
1119 | *** Garbage Collection Magic Hack :package: | 1116 | *** Garbage Collection Magic Hack :package: |
1120 | 1117 | ||
1121 | Look, I'm not going to look too deeply into this. It's /magic/ afer | 1118 | Look, I'm not going to look too deeply into this. It's /magic/ afer |
1122 | all. | 1119 | all. |
@@ -1186,7 +1183,7 @@ Notepad can handle UNIX line endings, so I don't want to hear it. | |||
1186 | (add-hook 'before-save-hook #'ewiki/no-junk-please-were-unixish) | 1183 | (add-hook 'before-save-hook #'ewiki/no-junk-please-were-unixish) |
1187 | #+end_src | 1184 | #+end_src |
1188 | 1185 | ||
1189 | ** Keep =~/.emacs.d= clean :package: | 1186 | ** Keep =~/.emacs.d= clean :package: |
1190 | 1187 | ||
1191 | #+begin_src emacs-lisp :noweb-ref packages :noweb yes | 1188 | #+begin_src emacs-lisp :noweb-ref packages :noweb yes |
1192 | (straight-use-package 'no-littering) | 1189 | (straight-use-package 'no-littering) |
@@ -1215,7 +1212,7 @@ Notepad can handle UNIX line endings, so I don't want to hear it. | |||
1215 | `((".*" . ,dir)))) | 1212 | `((".*" . ,dir)))) |
1216 | #+end_src | 1213 | #+end_src |
1217 | 1214 | ||
1218 | ** Autosaves :package: | 1215 | ** Autosaves :package: |
1219 | 1216 | ||
1220 | I don't use the =auto-save= system, preferring instead to use | 1217 | I don't use the =auto-save= system, preferring instead to use |
1221 | Bozhidar Batsov's [[https://github.com/bbatsov/super-save][super-save]] package. | 1218 | Bozhidar Batsov's [[https://github.com/bbatsov/super-save][super-save]] package. |
@@ -1390,7 +1387,7 @@ It manages my whitespace for me, anyway. | |||
1390 | (setq-default kill-do-not-save-duplicates t) | 1387 | (setq-default kill-do-not-save-duplicates t) |
1391 | #+end_src | 1388 | #+end_src |
1392 | 1389 | ||
1393 | *** Kill the line if there is no region :crux: | 1390 | *** Kill the line if there is no region :crux: |
1394 | 1391 | ||
1395 | #+begin_src emacs-lisp :noweb-ref hooks | 1392 | #+begin_src emacs-lisp :noweb-ref hooks |
1396 | (crux-with-region-or-line kill-ring-save) | 1393 | (crux-with-region-or-line kill-ring-save) |
@@ -1551,9 +1548,9 @@ already commented. That's it. | |||
1551 | 1548 | ||
1552 | * Writing | 1549 | * Writing |
1553 | 1550 | ||
1554 | ** Word count :package: | 1551 | ** Word count |
1555 | 1552 | ||
1556 | *** WC Mode | 1553 | *** COMMENT WC Mode :package: |
1557 | 1554 | ||
1558 | I'm just going to comment this out for right now because I honestly | 1555 | I'm just going to comment this out for right now because I honestly |
1559 | don't know if it's that useful. | 1556 | don't know if it's that useful. |
@@ -1672,7 +1669,7 @@ to auto-fill in programming modes, but /only/ the comments. | |||
1672 | show-paren-style 'mixed) | 1669 | show-paren-style 'mixed) |
1673 | #+end_src | 1670 | #+end_src |
1674 | 1671 | ||
1675 | *** Smart parens :package: | 1672 | *** Smart parens :package: |
1676 | 1673 | ||
1677 | #+begin_src emacs-lisp :noweb-ref packages | 1674 | #+begin_src emacs-lisp :noweb-ref packages |
1678 | (straight-use-package 'smartparens) | 1675 | (straight-use-package 'smartparens) |
@@ -1719,7 +1716,7 @@ to auto-fill in programming modes, but /only/ the comments. | |||
1719 | 1716 | ||
1720 | ** Formatting | 1717 | ** Formatting |
1721 | 1718 | ||
1722 | *** Aggressive indent :package: | 1719 | *** Aggressive indent :package: |
1723 | 1720 | ||
1724 | #+begin_src emacs-lisp :noweb-ref packages | 1721 | #+begin_src emacs-lisp :noweb-ref packages |
1725 | (straight-use-package 'aggressive-indent) | 1722 | (straight-use-package 'aggressive-indent) |
@@ -1878,7 +1875,7 @@ move up a directory with a keybinding, I'll change =-a= to =-A=. | |||
1878 | (define-key acdw/map (kbd "C-x C-j") #'dired-jump) | 1875 | (define-key acdw/map (kbd "C-x C-j") #'dired-jump) |
1879 | #+end_src | 1876 | #+end_src |
1880 | 1877 | ||
1881 | *** Expand subtrees :package: | 1878 | *** Expand subtrees :package: |
1882 | 1879 | ||
1883 | Instead of opening each folder in its own buffer, =dired-subtree= | 1880 | Instead of opening each folder in its own buffer, =dired-subtree= |
1884 | enables me to open them in the same buffer, fancily indented. | 1881 | enables me to open them in the same buffer, fancily indented. |
@@ -1892,7 +1889,7 @@ enables me to open them in the same buffer, fancily indented. | |||
1892 | (define-key dired-mode-map "i" #'dired-subtree-toggle)) | 1889 | (define-key dired-mode-map "i" #'dired-subtree-toggle)) |
1893 | #+end_src | 1890 | #+end_src |
1894 | 1891 | ||
1895 | *** Collapse singleton directories :package: | 1892 | *** Collapse singleton directories :package: |
1896 | 1893 | ||
1897 | If a directory only has one item in it, =dired-collapse= shows what | 1894 | If a directory only has one item in it, =dired-collapse= shows what |
1898 | that one item is. | 1895 | that one item is. |
@@ -1956,7 +1953,7 @@ true, please feel free to hack this repo and change this paragraph. | |||
1956 | (setenv "GIT_ASKPASS" "git-gui--askpass") | 1953 | (setenv "GIT_ASKPASS" "git-gui--askpass") |
1957 | #+end_src | 1954 | #+end_src |
1958 | 1955 | ||
1959 | **** Forge :package: | 1956 | **** Forge :package: |
1960 | 1957 | ||
1961 | #+begin_src emacs-lisp :noweb-ref packages | 1958 | #+begin_src emacs-lisp :noweb-ref packages |
1962 | (straight-use-package 'forge) | 1959 | (straight-use-package 'forge) |
@@ -1964,7 +1961,7 @@ true, please feel free to hack this repo and change this paragraph. | |||
1964 | (require 'forge)) | 1961 | (require 'forge)) |
1965 | #+end_src | 1962 | #+end_src |
1966 | 1963 | ||
1967 | *** Git file modes :package: | 1964 | *** Git file modes :package: |
1968 | 1965 | ||
1969 | #+begin_src emacs-lisp :noweb-ref packages | 1966 | #+begin_src emacs-lisp :noweb-ref packages |
1970 | (dolist (feat '(gitattributes-mode | 1967 | (dolist (feat '(gitattributes-mode |
@@ -2858,7 +2855,7 @@ settings and written some ancillary scripts. | |||
2858 | 2855 | ||
2859 | I'll put generic system-integrating code here. | 2856 | I'll put generic system-integrating code here. |
2860 | 2857 | ||
2861 | *** Edit with Emacs :package: | 2858 | *** Edit with Emacs :package: |
2862 | 2859 | ||
2863 | Install the [[https://addons.mozilla.org/en-US/firefox/addon/edit-with-emacs1/][Firefox Addon]] alongside this package to edit web forms in | 2860 | Install the [[https://addons.mozilla.org/en-US/firefox/addon/edit-with-emacs1/][Firefox Addon]] alongside this package to edit web forms in |
2864 | Emacs (or the [[https://chrome.google.com/webstore/detail/edit-with-emacs/ljobjlafonikaiipfkggjbhkghgicgoh][Chrome one]] if you... /hate/ freedom :P). | 2861 | Emacs (or the [[https://chrome.google.com/webstore/detail/edit-with-emacs/ljobjlafonikaiipfkggjbhkghgicgoh][Chrome one]] if you... /hate/ freedom :P). |