diff options
author | Case Duckworth | 2021-01-28 17:56:25 -0600 |
---|---|---|
committer | Case Duckworth | 2021-01-28 17:56:25 -0600 |
commit | c211a28479cf5aa14de044d64bdfbb59b09741c2 (patch) | |
tree | e8f49573a3e3b2125ec3190833713d1b6b4404b6 | |
parent | Change fill-column (diff) | |
download | emacs-c211a28479cf5aa14de044d64bdfbb59b09741c2.tar.gz emacs-c211a28479cf5aa14de044d64bdfbb59b09741c2.zip |
Integrate suggestions from Emacs Prelude
-rw-r--r-- | config.org | 59 |
1 files changed, 55 insertions, 4 deletions
diff --git a/config.org b/config.org index eb23224..a8e4ad6 100644 --- a/config.org +++ b/config.org | |||
@@ -253,7 +253,10 @@ filesystem paths. | |||
253 | #+end_src | 253 | #+end_src |
254 | 254 | ||
255 | #+begin_src emacs-lisp :noweb-ref settings | 255 | #+begin_src emacs-lisp :noweb-ref settings |
256 | (setq-default uniquify-buffer-name-style 'forward) | 256 | (setq-default uniquify-buffer-name-style 'forward |
257 | uniquify-separator "/" | ||
258 | uniquify-after-kill-buffer-p t | ||
259 | uniquify-ignore-buffers-re "^\\*") | ||
257 | #+end_src | 260 | #+end_src |
258 | 261 | ||
259 | *** Startup buffers | 262 | *** Startup buffers |
@@ -882,6 +885,12 @@ I like the rich annotations provided by =marginalia=. | |||
882 | (selectrum-exhibit)))) | 885 | (selectrum-exhibit)))) |
883 | #+end_src | 886 | #+end_src |
884 | 887 | ||
888 | ** Imenu | ||
889 | |||
890 | #+begin_src emacs-lisp :noweb-ref settings | ||
891 | (setq-default imenu-auto-rescan t) | ||
892 | #+end_src | ||
893 | |||
885 | ** Completion | 894 | ** Completion |
886 | 895 | ||
887 | *** Hippie Expand | 896 | *** Hippie Expand |
@@ -1007,7 +1016,8 @@ I keep all of it. | |||
1007 | search-ring | 1016 | search-ring |
1008 | regexp-search-ring) | 1017 | regexp-search-ring) |
1009 | history-length t ; Don't truncate | 1018 | history-length t ; Don't truncate |
1010 | history-delete-duplicates t) | 1019 | history-delete-duplicates t |
1020 | savehist-autosave-interval 60) | ||
1011 | #+end_src | 1021 | #+end_src |
1012 | 1022 | ||
1013 | #+begin_src emacs-lisp :noweb-ref modes | 1023 | #+begin_src emacs-lisp :noweb-ref modes |
@@ -1046,7 +1056,8 @@ with that. | |||
1046 | 1056 | ||
1047 | #+begin_src emacs-lisp :noweb-ref settings | 1057 | #+begin_src emacs-lisp :noweb-ref settings |
1048 | (setq-default recentf-max-menu-items 100 | 1058 | (setq-default recentf-max-menu-items 100 |
1049 | recentf-max-saved-items nil) | 1059 | recentf-max-saved-items nil |
1060 | recentf-auto-cleanup 'never) | ||
1050 | #+end_src | 1061 | #+end_src |
1051 | 1062 | ||
1052 | #+begin_src emacs-lisp :noweb-ref modes | 1063 | #+begin_src emacs-lisp :noweb-ref modes |
@@ -1577,6 +1588,17 @@ to auto-fill in programming modes, but /only/ the comments. | |||
1577 | (add-hook 'prog-mode-hook #'smartparens-strict-mode) | 1588 | (add-hook 'prog-mode-hook #'smartparens-strict-mode) |
1578 | #+end_src | 1589 | #+end_src |
1579 | 1590 | ||
1591 | **** Use =paredit= bindings | ||
1592 | |||
1593 | #+begin_src emacs-lisp :noweb-ref settings | ||
1594 | (setq-default sp-base-keybindings 'paredit) | ||
1595 | #+end_src | ||
1596 | |||
1597 | #+begin_src emacs-lisp :noweb-ref modes | ||
1598 | (with-eval-after-load 'smart-parens | ||
1599 | (sp-use-paredit-bindings)) | ||
1600 | #+end_src | ||
1601 | |||
1580 | ** Formatting | 1602 | ** Formatting |
1581 | 1603 | ||
1582 | *** Aggressive indent :package: | 1604 | *** Aggressive indent :package: |
@@ -1590,6 +1612,13 @@ to auto-fill in programming modes, but /only/ the comments. | |||
1590 | (blackout 'aggressive-indent-mode) | 1612 | (blackout 'aggressive-indent-mode) |
1591 | #+end_src | 1613 | #+end_src |
1592 | 1614 | ||
1615 | Since aggressive indenting takes care of tabs, I can use =<TAB>= to complete | ||
1616 | things! | ||
1617 | |||
1618 | #+begin_src emacs-lisp :noweb-ref settings | ||
1619 | (setq-default tab-always-indent 'complete) | ||
1620 | #+end_src | ||
1621 | |||
1593 | ** Typesetting | 1622 | ** Typesetting |
1594 | 1623 | ||
1595 | *** Prettify-mode | 1624 | *** Prettify-mode |
@@ -1620,6 +1649,14 @@ checks for a shebang). | |||
1620 | #'executable-make-buffer-file-executable-if-script-p) | 1649 | #'executable-make-buffer-file-executable-if-script-p) |
1621 | #+end_src | 1650 | #+end_src |
1622 | 1651 | ||
1652 | ** Compilation | ||
1653 | |||
1654 | #+begin_src emacs-lisp :noweb-ref settings | ||
1655 | (setq-default compilation-ask-about-save nil ; just save | ||
1656 | compilation-always-kill t ; kill the old processes | ||
1657 | compilation-scroll-output 'first-error) | ||
1658 | #+end_src | ||
1659 | |||
1623 | ** Language-specific | 1660 | ** Language-specific |
1624 | 1661 | ||
1625 | *** Emacs Lisp | 1662 | *** Emacs Lisp |
@@ -2546,8 +2583,17 @@ section come from [[https://github.com/termitereform/JunkPile/blob/master/emacs- | |||
2546 | See also [[https://www.gnu.org/software/emacs/manual/html_mono/efaq-w32.html][the GNU FAQ for Windows]]. At some point I should really dig | 2583 | See also [[https://www.gnu.org/software/emacs/manual/html_mono/efaq-w32.html][the GNU FAQ for Windows]]. At some point I should really dig |
2547 | into the multiple settings available for w32 systems. | 2584 | into the multiple settings available for w32 systems. |
2548 | 2585 | ||
2586 | See also [[https://github.com/bbatsov/prelude/blob/master/core/prelude-windows.el][the Prelude Windows configuration]] (modifier keys). | ||
2587 | |||
2549 | #+begin_src emacs-lisp | 2588 | #+begin_src emacs-lisp |
2550 | (setq-default w32-allow-system-shell t) ; enable cmd.exe as shell | 2589 | (setq-default w32-allow-system-shell t ; enable cmd.exe as shell |
2590 | ;; modifier keys | ||
2591 | w32-pass-lwindow-to-system nil | ||
2592 | w32-lwindow-modifier 'super | ||
2593 | w32-pass-rwindow-to-system nil | ||
2594 | w32-rwindow-modifier 'super | ||
2595 | w32-pass-apps-to-system nil | ||
2596 | w32-apps-modifier 'hyper) | ||
2551 | #+end_src | 2597 | #+end_src |
2552 | 2598 | ||
2553 | *** Scripts | 2599 | *** Scripts |
@@ -2872,3 +2918,8 @@ It's highly likely that the WTFPL is completely incompatible with the | |||
2872 | GPL, for what should be fairly obvious reasons. To that, I say: | 2918 | GPL, for what should be fairly obvious reasons. To that, I say: |
2873 | 2919 | ||
2874 | *SUE ME, RMS!* | 2920 | *SUE ME, RMS!* |
2921 | |||
2922 | ** Inspiration and further reading | ||
2923 | |||
2924 | - [[https://github.com/bbatsov/prelude][Emacs Prelude]] | ||
2925 | - [[https://github.com/alphapapa/unpackaged.el][Unpackaged]] | ||