summaryrefslogtreecommitdiff
path: root/.emacs-custom.el
AgeCommit message (Collapse)Author
2025-01-25Achieve XDG complianceKévin Le Gouguec
… sort of. Emacs apps will stuff all manner of transient state under user-emacs-directory by default, so full XDG compliance would probably involve customizing them all to instead use ~/.cache but 🤷
2023-11-26Keep chipping away at custom-set-variablesKévin Le Gouguec
And finally get around to setting calendar-intermonth-text. Re-implement the docstring's example using functions I actually understand.
2023-10-08Move generic-x configuration to use-packageKévin Le Gouguec
That package is unusual in that it requires… requiring it, in order to activate its settings. So it's a good candidate for use-package's :demand t. It's also a good candidate because something changed in Emacs's Lisp pretty-printing code, and now customizing anything changes how this variable is serialized, generating a spurious diff. Can't wait to have completely moved away from that auto-generated form.
2023-07-30Chip away at Custom fileKévin Le Gouguec
Move Python settings to use-package. Tweak a couple of knobs while in there.
2023-06-04Convert diff-hl tweaks to use-packageKévin Le Gouguec
Puzzled by this problem I have with :hook. "(use-package) Hooks" suggests that if package X defines function X-foo to be used by package Y in Y-bar-hook, then the idiomatic thing to do is… (use-package X :hook ((Y-bar . X-foo))) … but empirically, if Y.el contains… (defcustom Y-bar-hook '(Y-quux Y-corge)) (add-hook 'Y-bar-hook #'Y-grault) … then Y-bar-hook will be set to '(X-foo Y-grault): it will be missing the functions added in the defcustom form. Since add-hook does this: (or (boundp hook) (set hook nil)) I am assuming that the problem happens when use-package runs X's :hook additions before Y is loaded. No idea (a) if I can reproduce from -Q (b) if this is a SNAFU from setting always-defer (c) if this could be solved by sprinkling :after or :requires.
2023-01-15Port more settings to use-packageKévin Le Gouguec
2023-01-12Move show-paren settings to use-packageKévin Le Gouguec
show-paren-mode is not needed for Emacs≥28, but I still have stuff in these dotfiles that purport to support older versions.
2022-12-30Port sneaky isearch setting to use-packageKévin Le Gouguec
2022-12-30Remove paradox settingsKévin Le Gouguec
Since I'm not using it anymore.
2022-12-27Port package configuration to use-packageKévin Le Gouguec
Also update package list: - account eglot and use-package being built-in - add a couple of packages for Emacs development (elisp-benchmarks, gnus-mock) - remove paradox (most features now built into vanilla package.el)
2022-11-20Keep porting to use-packageKévin Le Gouguec
That one was a doozy.
2022-11-20Port some package settings to use-packageKévin Le Gouguec
Undecided about C-c bindings. I like having them in "one neat pile", rather than scattered across several use-package forms.
2022-11-20Start porting to use-packageKévin Le Gouguec
2022-07-14Automatically close tab-bar once a single tab remainsKévin Le Gouguec
2022-06-16Prevent Eglot from resizing echo areaKévin Le Gouguec
Moving around in Rust code is a pretty nerve-racking experience otherwise.
2022-02-13Add MELPA with add-to-listKévin Le Gouguec
I could update the Custom value to add NonGNU ELPA, but at this point I'd rather forsake Custom for lists altogether.
2021-12-25Port Modus settings to v2Kévin Le Gouguec
2021-11-28Set some recently added Emacs variablesKévin Le Gouguec
2021-10-15Tweak Emacs settingsKévin Le Gouguec
- clarify package initialization comments - load Modus theme on terminal too - use emoji variation selector when appropriate - open patches in read-only mode - now that Modus has been updated, ditch obsolete option - etc.
2021-09-18Tweak some Emacs settingsKévin Le Gouguec
2021-08-03Let erc-compute-nick do its jobKévin Le Gouguec
2021-08-03Make Emacs heed GSettingsKévin Le Gouguec
The pgtk build will not honor X resources anymore; move with the times. On my Debian XFCE laptop with a 1366x768 screen, this setting seems to yield acceptable results: $ gsettings set org.gnome.desktop.interface monospace-font-name \ 'DejaVu Sans Mono 11'
2021-07-30Migrate Modus settingsKévin Le Gouguec
modus-themes-slanted-constructs still needs to be updated to modus-themes-italic-constructs, but the built-in version of the theme has a quirk that makes customization a bit wonky.
2021-07-17Set new option to prevent Dired buffers from piling upKévin Le Gouguec
Time to unlearn 'dired-find-alternate-file'.
2021-06-03Enable icomplete-verticalKévin Le Gouguec
Does not implement grouping yet, and the Modus highlighting is a bit too colorful, but C-p/C-n is an inestimable quality-of-life improvement.
2021-04-27Tweak Emacs configKévin Le Gouguec
- install async for paradox; sort package list - don't load Modus theme if it is not builtin
2021-04-22Remove redundant customizationKévin Le Gouguec
2021-04-22Ignore case for all completionKévin Le Gouguec
2021-04-14Enable repeat-mode for Emacs≥28Kévin Le Gouguec
2021-04-11Tweak how C-x 8 RET displays candidatesKévin Le Gouguec
2021-03-17Switch to dark Modus themeKévin Le Gouguec
2021-03-17Commit a collection of tweaks to Emacs configKévin Le Gouguec
2021-02-10Move Magit bindings to C-c gKévin Le Gouguec
2021-01-14Make Org ellipses less conspicuousKévin Le Gouguec
2020-12-31Make sure find{-name,}-dired handles non-ASCII charsKévin Le Gouguec
2020-09-28Mark current day in calendarKévin Le Gouguec
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-12Tweak default search method, and IRC mode-line updatesKévin Le Gouguec
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-03-18Use minibuffer for password promptsKévin Le Gouguec
The GUI prompts frequently lack more context, e.g. if I'm using TRAMP to sudoedit a file, I don't know whether the requested password is for ~/.authinfo.gpg or for superuser authentication.
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.
2019-12-15Use HTTPS to connect to GNU ELPAKévin Le Gouguec
2019-12-06Enable ERC desktop notificationsKévin Le Gouguec
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-31Customize some Emacs settingsKévin Le Gouguec
- something something Sunday week-*end* something - been using these packages for a while now - getting used to the "most recent below" convention; it's what every interface shows within threads anyway
2019-06-17Allow Emacs windows to resize to non-integral factors of line heightKévin Le Gouguec
Can't believe this is not the default. Having this tiny 5-pixel-high eyehole into some random non-Emacs application is at best useless, at worst distracting. Found while skimming bug#36250.