summaryrefslogtreecommitdiff
path: root/.emacs
AgeCommit message (Collapse)Author
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.
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 😨