Commit Graph

3248 Commits

Author SHA1 Message Date
Dmitry Bogatov c83b6d35a9 config(emacs): Add plugin to edit multiline strings in YAML 2024-04-12 16:57:53 -04:00
Dmitry Bogatov 8f36384416 config(nixos): Add plugin to automatically uppercase SQL keywords 2024-04-11 17:03:33 -04:00
Dmitry Bogatov e616899132 config(nixos): Sort list of emacs plugins 2024-04-11 17:03:12 -04:00
Dmitry Bogatov d5e3a958a4 config(emacs): Add plugin to automatically uppercase SQL keywords 2024-04-07 18:49:11 -04:00
Dmitry Bogatov 583489df33 config(emacs): Truncate long lines in SQL mode
This makes output of "\d+" to look the same as in psql in normal
terminal emulator.
2024-04-07 18:40:15 -04:00
Dmitry Bogatov fffef37fc2 config(emacs): Configure #'postgres-sql to work nicely with $dayjob 2024-04-07 18:13:20 -04:00
Dmitry Bogatov d59591165c config(nixos): Be explicit that no incoming packets are allowed 2024-04-06 22:10:45 -04:00
Dmitry Bogatov 12f52b8e75 config(emacs): Mark #'notmuch-tree for auto-load
For some reason upstream does not provide autoload cookie.
2024-04-03 19:50:50 -04:00
Dmitry Bogatov 7b99929c71 text/gemini: New post: Universal Unique Identifies are good, use them 2024-04-03 01:19:53 -04:00
Dmitry Bogatov 5caadd9b1b config(nixos): Remove "mutt" from user profile
These days I use "notmuch" Emacs client for personal email.
2024-04-02 22:09:10 -04:00
Dmitry Bogatov 11c4119933 config(procmail): Adjust PATH to new location of bogofilter(1) 2024-04-02 21:46:41 -04:00
Dmitry Bogatov 8f35772797 config(nixos): Manage fish-direnv integration via Home Manager 2024-04-02 21:12:06 -04:00
Dmitry Bogatov e27a8de4c8 config(nixos): Manage fish-starship integration with Home Manager 2024-04-02 21:01:59 -04:00
Dmitry Bogatov 781cd1b517 config(nixos): Allow home-manager to manage fish shell config
With proper use of "source", I can have out-of-box integration with
other packages and direct editing of the "" too.
2024-04-02 20:30:24 -04:00
Dmitry Bogatov ba2f87d455 config(nixos): Move content of "universe" set into home-manager config 2024-04-02 19:51:31 -04:00
Dmitry Bogatov 5afa31e2d2 config(emacs): Add keybinding for #'eshell 2024-04-02 19:20:24 -04:00
Dmitry Bogatov 44f59b1ad9 config(nixos): Make sure NixOS config uses same set of overlays as "nix repl" 2024-04-02 19:19:12 -04:00
Dmitry Bogatov 6a9cc1dc04 config(emacs): Do not enable "whitespace-mode" in special (e.g magit) buffers 2024-04-02 10:31:43 -04:00
Dmitry Bogatov 2a19f82c0c config(nixos): Move nixos configuration into config/nixos
Adjust scripts and relative paths as necessary to make sure that this
change is no-rebuild one.
2024-04-01 22:57:22 -04:00
Dmitry Bogatov 9f4016763d githooks: Rename top-level directory for consistency with "git" proper 2024-04-01 22:00:01 -04:00
Dmitry Bogatov 0c5eeae49c config(emacs): Make "pytest" plugin to treat "t" directory as project root
This is convenient in (admittely, rare) scenarios when python package
root does not .envrc file.
2024-04-01 21:49:52 -04:00
Dmitry Bogatov 0132e1a0bd config(nixos): Install "zig"-related packages for Emacs 2024-04-01 21:48:58 -04:00
Dmitry Bogatov b32feaccbc githooks: Modify "prepare-commit-msg" to use libscripts
Also remove enumerating files from the commit message template. In
common scenario when only one file is modified it is useless.
2024-04-01 21:47:29 -04:00
Dmitry Bogatov 859ec34997 libscripts: Introduce common library for python scripts
Re-implement and test some functionality of the "prepare-commit-msg"
into it.
2024-04-01 21:38:45 -04:00
Dmitry Bogatov 4dff625f77 treewide: Git-Ignore byte-compiled python code 2024-04-01 21:21:54 -04:00
Dmitry Bogatov 2a8bcc51fa universe: Add "pytest" into profile-wide python
Now I can not only write code, but also test it.
2024-03-31 03:31:39 -04:00
Dmitry Bogatov 5650040e2d git-hooks: Special case commit message for emacs's config.el 2024-03-31 02:11:34 -04:00
Dmitry Bogatov ab81d75039 config/bin: New script: "slack-post" 2024-03-31 02:11:00 -04:00
Dmitry Bogatov 1aa3114d13 git-hooks: Drop unneded code from "prepare-commit-msg"
Now that I use magit that shows staged changes in another window when
I am writing the commit message, I no longer need these staged changes
in the commit message template.
2024-03-31 02:06:46 -04:00
Dmitry Bogatov 6b0d281219 emacs: Add command to make and share link to the current file
It sad, but there is no standard way to make a reference to a file in
a git repository. Zoo of web-interfaces is the best we have.
2024-03-31 02:00:55 -04:00
Dmitry Bogatov 4a9a831954 universe: Remove "nixpkgs" from the universe set
Now I format my Nix code in ~/source with "alejandra", and for $dayjob
I have separate, patched version of "nixfmt".
2024-03-31 01:49:20 -04:00
Dmitry Bogatov 2ca5a7710e emacs: Add another keybinding for #'execute-extended-command
"C-x C-x" is still quite awkward on my keyboard.
2024-03-31 01:42:53 -04:00
Dmitry Bogatov 562985e3b1 emacs: Disable prompt for "revert-buffer" command 2024-03-28 21:19:43 -04:00
Dmitry Bogatov 059fbff2e8 emacs: Add keybinding for "pytest-again" function
That is huge quality of life improvement. This way I don't need to
switch back and forth between the test and the implementation, I can
edit implementation again and again until particular test passes.
2024-03-27 23:47:08 -04:00
Dmitry Bogatov 6c77fa2852 emacs: Display pytest run output in full frame
After some experiments, I found it more comfortable. Bottom window is
usually not big enough to fit whole exception backtrace.
2024-03-27 23:45:48 -04:00
Dmitry Bogatov 9a93cf3c84 emacs: Rebind "0" in eshell to move the point after the prompt
Little quality of life improvement. Out-of-box, "C-a" does exactly
that, but evil users have to fix these little rough corners themself.
2024-03-27 23:43:40 -04:00
Dmitry Bogatov 66a50c2d49 emacs: Configure "ff-find-other-file" to work in python mode
It toggles between code proper and tests.
2024-03-27 11:29:51 -04:00
Dmitry Bogatov 005a416546 emacs: Add new "defhook" macro
This macro makes configuring buffer-local variables in major modes
easier and more uniform.
2024-03-27 11:28:43 -04:00
Dmitry Bogatov 4a5a833e9b emacs: Configure notion of "project"
Configure list of files that are treated as "project root". This
concept is used, in particular, by "lsp-mode". Less typing.
2024-03-27 10:34:32 -04:00
Dmitry Bogatov 00b3d0762e emacs: Redefine "C-x k" to "bury-buffer", not "kill-buffer"
Usually, it is easier to find find in list of buffers than by path in
the filesystem.
2024-03-27 10:14:25 -04:00
Dmitry Bogatov ab82872e21 emacs: Automatically restore sessions
That makes restarting emacs not that painful.
2024-03-25 22:02:05 -04:00
Dmitry Bogatov 130b612e5a emacs: Save bookmarks file in backup directory 2024-03-25 21:52:46 -04:00
Dmitry Bogatov 713da03153 nixos: Configure emacs plugins via home-manager
This keeps my ~/.emacs.d a bit cleaner.
2024-03-25 17:40:16 -04:00
Dmitry Bogatov 34670e0a0a nixos: Setup emacs via home-manager 2024-03-24 17:10:29 -04:00
Dmitry Bogatov 817558a662 emacs: Alias "tig" in eshell to "magit"
Curses applications break eshell horribly, and magit can do almost
everything I might need "tig" for.
2024-03-24 15:21:15 -04:00
Dmitry Bogatov dfd68c4274 nixos: Configure bare-minimum home-manager profile
Descending into the darkness, further and further.
2024-03-24 15:17:34 -04:00
Dmitry Bogatov c5bcf59a16 universe: Add fish(1) plugin to execute /bin/sh variable assignments 2024-03-24 14:47:58 -04:00
Dmitry Bogatov 45a22e303f Vendor home-manager=1c2c5e4cabb 2024-03-24 14:20:50 -04:00
Dmitry Bogatov ad1562104c Squashed 'home-manager/' content from commit 1c2c5e4cabba
git-subtree-dir: home-manager
git-subtree-split: 1c2c5e4cabba4c43504ef0f8cc3f3dfa284e2dbb
2024-03-24 14:20:49 -04:00
Dmitry Bogatov c1a2eed032 maint: Make "squash-subtree" script to store commit date in "git-subtree.json"
This is redundant, but convenient.
2024-03-24 11:20:19 -04:00