summaryrefslogtreecommitdiff
path: root/.emacs
AgeCommit message (Collapse)Author
2018-02-14Use some obscure Greek symbol as with-editor lighterKévin Le Gouguec
Found with C-x 8 RET EDIT TAB. From the Unicode Standard[1]: > Ancient Greek scribes generally wrote in continuous uppercase > letters without separating letters into words. On occasion, the > scribe added punctuation to indicate the end of a sentence or a > change of speaker or to separate words. Since With-Editor acts "as the $EDITOR of an external process", I like the "change of speaker" idea. For posterity, a cat-and-mouse game I just completed: - notice the " Server" string in the minor mode list - look for "Server" in M-x describe-mode: nothing - find out about minor-mode-alist: > (server-buffer-clients " Server") > server-buffer-clients is a variable defined in ‘server.el’. - visit ‘server.el’ link - notice that I end up in /usr/local/share/emacs/25.1/lisp/ - assume that I am running Emacs master - assume Emacs is dumb and gives priority to /usr/local/ over ~ - visit ~/Downloads/sources/emacs/lisp/server.el manually - spend hours looking for " Server" - find Changelog entries referencing Bug#20201 - see that this has been removed years ago - check Emacs version - well whadya know this actually is 25.1 - oh yeah this is my package-upgrade instance which runs 25.1 to make sure packages are byte-compiled by the oldest Emacs on my system - 🤦 So on the one hand, I spent the better part of this morning reading trivia on incredibly obscure Greek symbols, and debugging Emacs mode-line shenanigans. On the other hand, now I know that Astérix and Obélix are named after Aristarchian symbols. [1]: http://unicode.org/versions/Unicode10.0.0/UnicodeStandard-10.0.pdf § 6.2 General Punctuation - Archaic Punctuation and Editorial Marks p282 Ancient Greek Editorial Marks See also: http://unicode.org/L2/L2003/03324-tlg-editorialbrief.pdf https://en.wikipedia.org/wiki/Obelism https://en.wikipedia.org/wiki/Aristarchian_symbols
2018-02-13Cleanup comments in .emacsKévin Le Gouguec
visual-line vs word-wrap: AFAICT, visual-line is word-wrap plus some customizable options: - fringe indicators; - specialized editing commands. So there is no reason to bother with word-wrap. Appending through dir-locals: I wanted to have lists in dir-locals *appended* to the variables, rather than overwritten, eg: ;; in .emacs: (setq my/foo '(1 2 3)) ;; in .dir-locals.el: ((c-mode . ((my/foo . (4 5 6))))) ;; M-: my/foo in a C buffer: (1 2 3 4 5 6) I don't think there is built-in support for this. I guess the simplest way to emulate it would be to 1. put (4 5 6) in some other variable my/bar; 2. write a hook that appends my/bar to my/foo.
2018-02-07Unbind C-c hKévin Le Gouguec
C-M-S-h (ie control alt shift H) still works in graphical frames, which covers 99% of my usage.
2018-02-07Play with text properties for mode-line lightersKévin Le Gouguec
2018-02-03Use symbols for some minor mode lightersKévin Le Gouguec
2018-02-02Remove period after TODOKévin Le Gouguec
BECAUSE CONSISTENCY DAMMIT.
2018-02-02I can't live without backward-kill-wordKévin Le Gouguec
I mean I can't live with it on C-<backspace> or M-<backspace>.
2018-01-31Add Emacs dotfilesKévin Le Gouguec