Dmitry Bogatov
fbf2c7851e
config(nixos): Add Mullvad VPN to the system-wide configuration
...
I am already paying for it to use it on my phone, why not use extra slot for
the laptop? Also install "mullvad-browser", which is presumably optimized
for privacy by somebody who is paid to stay on top of all dirty survelliance
tricks. I don't have energy to do it myself, so let's call it "good enough".
Unfortunately, the way mullvad-vpn service manages the network interfaces
breaks my openvpn connection to $dayjob virtual machines, so I can't use it
during working hours. Alright, that draws a line, which might be a good thing.
I'll fix it eventually.
2024-04-18 09:37:22 -04:00
Dmitry Bogatov
e24882606b
commune: Fix whitespace error
2024-04-18 09:36:40 -04:00
Dmitry Bogatov
127fa8a615
config(emacs): Add command to "git-grep" symbol at point
...
In particular, it plays nicely with grep marker snippers, like
grep/46e12731aadc65ac95f69783399152e
2024-04-18 09:35:22 -04:00
Dmitry Bogatov
e36c7165a0
config/.xinitrc: Set environment variable so Firefox looks good on huge resolution screen
2024-04-18 09:34:28 -04:00
Dmitry Bogatov
cff9fbf637
config(nixos): Add Emacs plugin for terraform HCL language
2024-04-15 14:08:49 -04:00
Dmitry Bogatov
b9845b66b6
config(git): Add "git exec" alias to execute commands from git root
...
The same effect can be achieved with "git rev-parse --show-toplevel",
but it is cleaner this way. Add "execline" to the list of system-wide
installed packages so "exec" external command is always found.
2024-04-15 14:06:59 -04:00
Dmitry Bogatov
7a498bbb4a
config(emacs): Switch "evil" to Emacs mode for tabulated-list modes
...
tabulated-list modules usually define much of single-letter
keybindings, and in Evil normal mode I lose them and instead have
non-working editing keybindings. Not good.
Instead, I'll patch keymap to have essentials ("j", "k", "/") working
in vim-style, and will learn native Emacs keybidings for other operations.
2024-04-13 23:05:23 -04:00
Dmitry Bogatov
d8a126b4bb
config(emacs): Set WATCHMAN_SOCK environment variable
...
This speeds treefmt(1) that is run from eshell.
2024-04-13 18:28:14 -04:00
Dmitry Bogatov
9fd68e1483
libscripts: Add another test for "git_message" function
2024-04-13 18:23:52 -04:00
Dmitry Bogatov
433889ba20
config(emacs): Add headers for "outline-minor-mode"
...
Instead of thinking too hard on what is correct way to split
configuration file into files, I just use folding. Given that Emacs
has no concept of private symbols anyway, that has no code-related
implications.
2024-04-13 18:21:55 -04:00
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 "config.fish" 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