summaryrefslogtreecommitdiff
path: root/.emacs
AgeCommit message (Collapse)Author
2019-10-15Stop customizing git-commit-setup-hookKévin Le Gouguec
Add additional stuff manually.
2019-09-13Stop justifying commit messagesKévin Le Gouguec
Cute fluff, yet fluff still.
2019-08-31Stop delight'ing compilation-in-progress with Emacs≥27Kévin Le Gouguec
The code below works with the new indicator, but it's a bit ugly. (let ((props (text-properties-at 0 (car (alist-get 'compilation-in-progress mode-line-modes))))) (setf (car (alist-get 'compilation-in-progress mode-line-modes)) (apply #'propertize "⚙ " `(face compilation-mode-line-run ,@props))))
2019-05-25Add more "sorta-equal" symbols to my/input-methodKévin Le Gouguec
≈ ALMOST EQUAL TO ≊ ALMOST EQUAL OR EQUAL TO ≅ APPROXIMATELY EQUAL TO ≃ ASYMPTOTICALLY EQUAL TO ≡ IDENTICAL TO ≙ ESTIMATES ≔ COLON EQUALS
2019-05-17Add keybindings to switch to specific input methodsKévin Le Gouguec
2019-05-11Tweak mml-mode lighterKévin Le Gouguec
How did I not remember this guy.
2019-05-09Use symbols rather than strings to give packages to delightKévin Le Gouguec
Would be neat if the constant face could be applied to this last argument, just like it is highlighted in require and provide statements. Alas, those are covered by font-lock rules in lisp-mode.el…
2019-05-09Tweak lighter for zoom-in/zoom-outKévin Le Gouguec
The War For Mode-Line Space continues.
2019-05-08Customize various message-related variablesKévin Le Gouguec
Footnote and MML stuff, mainly. Change magit-blame-mode lighter: the new character is covered by Noto Color Emoji, not the old one.
2019-05-03Simplify call to set-fontset-fontKévin Le Gouguec
AFAICT, the last argument, ADD, will be nil by default, dixit (elisp)Argument List. This changes the semantics since I used to pass 'append explicitly, but I have no idea why I was doing that in the first place, so 🤷
2019-04-05Add documentation to lambdas created by my/make-tablessKévin Le Gouguec
2019-03-24CosmeticsKévin Le Gouguec
… an interesting game of whack-a-quote. I thought ("..." . ?…) might work, but alas…
2019-03-24Add more symbols to my/input-methodKévin Le Gouguec
And start organizing them. I don't really like this hanging '(, but I couldn't find a way to turn it into something along the lines of (list …).
2019-03-23Add ⚠ to my/input-methodKévin Le Gouguec
2019-03-15Stop highlighting long linesKévin Le Gouguec
I use whitespace-mode to check out *whitespace*, not to got on a crusade to enforce the Holy Eighty Rule.
2019-01-13Define my own input method instead of cluttering TeXKévin Le Gouguec
2019-01-12Add a reference to unicode-math-inputKévin Le Gouguec
This package seems to do exactly the kind of thing I would like to do.
2018-12-22Ensure fill-paragraph understands bullet listsKévin Le Gouguec
2018-12-21Change unnecessary when-let* to when-letKévin Le Gouguec
Thereby making the function work with Emacs 25.
2018-12-20Add binding to compile from project root folderKévin Le Gouguec
2018-12-20Add a binding for project-find-fileKévin Le Gouguec
Get rid of electric-pair-mode binding; I can't remember the last time I turned it off.
2018-12-20Fix bugfixKévin Le Gouguec
No idea how I let this one slide.
2018-12-19Make sure frame title evaluation does not mess with query-replaceKévin Le Gouguec
See linked bug report.
2018-12-06Tweak Emacs frames titleKévin Le Gouguec
This is somewhat more informative for me.
2018-11-30Add ibuffer grouping configurationKévin Le Gouguec
2018-11-23Turn a few Emacs knobsKévin Le Gouguec
2018-11-16Delight more minor mode indicatorsKévin Le Gouguec
It'd be really great to make Emacs grok Emoji faces.
2018-11-14Add VC hints in the marginKévin Le Gouguec
2018-11-14Have Org files auto-indented by defaultKévin Le Gouguec
2018-06-20Add ways to run shell commands in the minibufferKévin Le Gouguec
I sometimes need to create a file named $(date +%F).md. This commit introduces two ways to do this: 1. with recursive minibuffers: C-x C-f M-! date +%F RET 2. with a new function to add shell command outputs to the kill ring: C-x C-f C-c k ! date +%F RET C-y
2018-05-21Tweak Magit stuffKévin Le Gouguec
- make magit-blame take less space in mode-line - refine hunks, now that refinements look OK with eighters-theme
2018-04-15Clean up a few thingsKévin Le Gouguec
- use my/ prefix on every defun - delight whitespace-mode - remove leftover binding in C mode - enable all "confusing" commands
2018-04-15Add key-bindings to copy stuffKévin Le Gouguec
I regularly used C-x C-f M-n C-SPC C-a C-w C-g to get the current buffer's filename in the kill-ring (and the clipboard). This had two issues: 1. It does not work with Ivy: C-a only moves back to the beginning of the basename; 2. M-n runs the find-file-at-point machinery; if point is on a word that looks like a domain (ends with ".com", ".net", …), ffap *attempts to contact the domain*, which is inconvenient for a bunch of reasons (locks up the editor, leaks data by sending it in DNS requests, opens 9/tcp connections to random domains…) The latter can be disabled by customizing ffap-machine-p-known; maybe I'll go ahead and do that someday. In the meantime, defining a proper function instead of relying on side-effects seems like a quick-win. my/kill-ring-pipe-region allows me to quickly run pandoc on a Markdown snippet and paste the resulting HTML in LWN's comment form. I'm sure I will find other uses for it.
2018-03-20Stop calling package-initialize in version 27Kévin Le Gouguec
To prevent Emacs from modifying a user's init file behind their back, the developers have decided that: - by default, Emacs will call package-initialize before loading the user's init file (thereby ensuring that out-of-the-box, when Emacs starts, it activates packages installed in a previous session); - the user can disable packages (among other things) using a new, "early-init" file that will be read before package management kicks in. This has been committed to Emacs's master branch, so versions up to 26 still need to call package-initialize. While in there, tuck package-archives in the Custom file. Hopefully in a few years I can remove all this package cruft from my init file.
2018-03-15Add icons for Emacs post-compilation notificationKévin Le Gouguec
Also move them to .emacs.d. If some other program needs them, I guess I'll make an ~/.icons folder or something. Also break the 80-column rule 😨
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