You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.org
+16-14Lines changed: 16 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,14 +18,12 @@ This configuration assumes you're running Emacs 28, the latest version (though I
18
18
19
19
The most up-to-date version of this document is located [[https://github.com/patrickt/emacs][on GitHub]]. A better-rendered version can be found [[https://blog.sumtypeofway.com/posts/emacs-config.html][on my blog]], but might not be as current as the first version.
20
20
21
-
* Configuration: start!
22
-
23
-
Some TODOs:
21
+
** TODOs
24
22
25
-
- Figure out why we keep getting a save dialog for ~/dev/null~, and ~defadvice~ our way out of this.
26
-
- Port flycheck configuration to flymake
27
23
- Make a popper function that gives Magit a bit more breathing room
28
24
25
+
* Configuration: start!
26
+
29
27
** Preliminaries
30
28
31
29
We have to be sure to set ~lexical-binding~ in the file header to opt into Emacs lexical scope. Emacs Lisp really isn't the worst language once you pull in the community's /de facto/ standard libraries, but you need lexical scope.
@@ -101,6 +99,8 @@ Fixing Emacs's defaults is a nontrivial problem. We'll start with UI concerns.
101
99
confirm-kill-processes nil
102
100
;; if native-comp is having trouble, there's not very much I can do
103
101
native-comp-async-report-warnings-errors 'silent
102
+
;; unicode ellipses are better
103
+
truncate-string-ellipsis "…"
104
104
)
105
105
106
106
;; Never mix tabs and spaces. Never use tabs, period.
@@ -165,6 +165,7 @@ By default, the list of recent files gets cluttered up with the contents of down
165
165
(use-package recentf
166
166
:config
167
167
(add-to-list 'recentf-exclude "\\elpa")
168
+
(add-to-list 'recentf-exclude "private/tmp")
168
169
(recentf-mode))
169
170
#+end_src
170
171
@@ -458,7 +459,7 @@ Emacs's keybinding for ~comment-dwim~ is ~M-;~, which is not convenient to type
458
459
~iedit~ gives us the very popular idiom of automatically deploying multiple cursors to edit all occurrences of a particular word.
459
460
460
461
#+begin_src emacs-lisp
461
-
(use-package iedit)
462
+
(use-package iedit :defer t)
462
463
#+end_src
463
464
464
465
Parenthesis matching is one of the flaws in my Emacs setup as of this writing. I know that there are a lot of options out there---~paredit~, ~smartparens~, etc.---but I haven't sat down and really capital-L Learned a better solution than the TextMate-style bracket completion (which Emacs calls, somewhat fancifully, 'electric').
@@ -479,7 +480,7 @@ I got used to a number of convenient TextMate-style commands.
479
480
(bind-key "s-<return>" #'pt/eol-then-newline)
480
481
#+end_src
481
482
482
-
It's occasionally useful to be able to search a Unicode character by name.
483
+
It's occasionally useful to be able to search a Unicode character by name. And it's a measure of Emacs's performance, when using native-comp and Vertico, that you can search the entire Unicode character space without any keystroke latency.
483
484
484
485
#+begin_src emacs-lisp
485
486
(bind-key "C-c U" #'insert-char)
@@ -831,7 +832,11 @@ Magit also allows integration with GitHub and other such forges (though I hate t
831
832
The code-review package allows for integration with pull request comments and such.
0 commit comments