summaryrefslogtreecommitdiff
path: root/.emacs
AgeCommit message (Collapse)Author
2020-12-15Add another buffer-related keybindingKévin Le Gouguec
See I knew this C-c b keymap would pay for itself.
2020-11-21Add bindings for some buffer commandsKévin Le Gouguec
bury-buffer is useful as a quick way to dismiss a buffer I've brought up for a quick glance; rename-buffer helps persist some classes of buffers (compilation, help, Gnus articles) that get clobbered otherwise.
2020-09-25Simplify revision-formatting functionKévin Le Gouguec
Commit 2020-09-25 "* CONTRIBUTE: Don't recommend action stamps" (499848d840) officially disavows action stamps.
2020-09-18Define more prefix commandsKévin Le Gouguec
2020-09-18Only define project-wide shell commands for Emacs<28Kévin Le Gouguec
2020-09-18Simplify pair notationsKévin Le Gouguec
I find pcase patterns easier to grok than cons cells, dotted pairs, cars and cdrs.
2020-09-18Start defining proper prefix commandsKévin Le Gouguec
This allows - which-key to display a helpful symbol instead of "+prefix", - C-h b to cross-link to the keymap's docstring.
2020-09-18Tweak input method managementKévin Le Gouguec
- Stop requiring quail, since all functions I need are autoloaded. - Reformat quail-define-package clause ala TeX. Using the "UTF-8" language environment means the input method now shows up on C-h L UTF-8. - Since I might define more input methods, use a more "specific" name. - Move comment about user bindings where it belongs. - Make a proper defun, so that which-key can tell me which binding activates which method. - Note that docstrings could cross-reference input methods, if not for help-xref-mule-regexp.
2020-09-18Add which-keyKévin Le Gouguec
2020-07-29Update some keybindings, lighters & moreKévin Le Gouguec
C-c map: - use d for "display" features - m for "manuals" - only bind p [cf] when the equivalent C-x binding does not exist. Org 9.3.7 (future 9.4) now honors electric-indent-mode. Delight visual-line-mode since I have fringe indicators. Keep selection highlighted when moving to another window.
2020-07-17Give up on fine-grained erc-modules customizationKévin Le Gouguec
I wanted to add 'notifications to the list, started wondering whether I should change the hook by looping over cons or using append, and got bored. For the record, I want to include: - log - notifications and exclude: - fill
2020-07-05Tweak ibuffer, ERC, and Gnus FAQKévin Le Gouguec
- Add ibuffer section for VC buffers. - Let ERC pick up my full name. Also, bind switch-to-buffer-obey-display-actions to make C-x 4 4 and C-x 5 5 more reliable.
2020-06-22Tweak Emacs configuration some moreKévin Le Gouguec
Take advantage of recent (Emacs 28) additions to project.el to make a convenient "magit-to-project" command. Some C-c p bindings are now redundant with the new C-x p keymap; keep them for a bit, as Emacs 28 is not coming out anytime soon. Add an ibuffer group for "messaging" buffers. Set lua indentation to 2 spaces; the Lua Style Guide[1] says that this convention is used in many learning resources; this is also what pandoc filters use AFAICT. [1]: http://lua-users.org/wiki/LuaStyleGuide Org 9.4 introduces a new face for DONE headlines; I think the DONE keyword face is enough to distinguish these headlines, so I'll turn off that feature.
2020-05-18Remove obsolete kludge for rg-modeKévin Le Gouguec
Turns out somebody filed an issue soon after I committed my workaround: https://github.com/dajva/rg.el/issues/72 Now fixed 🙌
2020-04-13Update diff-hl integration with MagitKévin Le Gouguec
Cf. <https://github.com/dgutov/diff-hl/commit/a625033fb1dde83f6e4c2fc21f632b22ec34b609>.
2020-04-12Tweak compilation lighter for Emacs 27Kévin Le Gouguec
2020-03-20Stop using C-tab for other-windowKévin Le Gouguec
Use C-x o with repeatable o instead. This removes a conflict with Magit and Org bindings. Inspiration: https://emacs.stackexchange.com/a/52203/10209
2020-02-01Tweak a bunch of Emacs settingsKévin Le Gouguec
* Use Custom to set whitespace style. As much as I dislike using Custom for lists where I just want to add/remove a couple of elements, the previous method introduced a subtle bug where visiting a diff buffer, *then* activating whitespace-mode resulted in diff-mode's whitespace style applying instead of mine. Something to do with diff-setup-whitespace I guess. * Make Org comply with RET/C-j conventions in the rest of Emacs. Since Emacs 24.4, by virtue of electric-indent-mode being enabled by default, RET is the "smart newline" key which handles indentation, and C-j is the "dumb newline" key which simply inputs character 0x0A. * Stop popping another frame for Ediff's control buffer. The popup frame needs its own .Xresources entry. Sometimes it disappears behind the system tray. Having another window allows other-windowing. * Make line-number-mode try harder with long lines. * Change the scroll logic. scroll-conservatively > 100 tells Emacs to *never ever* recenter point, which is annoying when jumping to e.g. a search result or a tags definition. scroll-conservatively = n < 100 tells Emacs to recenter when scrolling needs to move more than n lines, and to scroll only m lines when m≤n. * And some other stuff.
2020-01-10Fix eager macro-expansion failure during startupKévin Le Gouguec
Emacs attempts to expand macros when loading uncompiled files to speed up their execution. Since rx is not loaded during startup, Emacs is not aware of the rx pattern for pcase, and takes it for the rx macro. Since this macro does not understand (let …) forms, it throws an "unknown rx pattern" error, which interrupts macro-expansion and shows a noisy warning.
2020-01-09Allow user to specify revision to consider for action stampsKévin Le Gouguec
2020-01-09Add a function to create action stamp from Magit bufferKévin Le Gouguec
2019-12-27Tweak Emacs font configurationKévin Le Gouguec
2019-12-23Prevent minibuffer seizures when setting frame titleKévin Le Gouguec
For reasons not entirely clear, the password prompt would get stuck when trying to sudoedit a file. minibuffer-depth-indicate-mode told me that I was 16 prompts deep. I'll chalk if off to my/project-name calling functions it shouldn't call when TRAMP is busy.
2019-12-07Disable rg.el's file-movement bindingsKévin Le Gouguec
2019-12-07Add a bunch of project-wide commandsKévin Le Gouguec
As well as a function to generate them.
2019-12-07Move commands use for keybindings aroundKévin Le Gouguec
I'm about to add another my/make-… function, and it will need to be defined before those global-set-key calls.
2019-12-07Remove TODO in .emacsKévin Le Gouguec
diff-hl does the Git gutter thing; I don't use hideshow often enough to care about it being visible in the fringe.
2019-11-21Make some minor improvements to .emacsKévin Le Gouguec
2019-11-19Improve font setupKévin Le Gouguec
Color fonts improve emoji readability IMO. Noto's emoji font does not cover 🗚 nor 🗛 though. While in there, use simplify a version check.
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.