.cls
-files in my TEXMFHOME
:
TEXMFHOME
is and you use custom TeX-files (e.g. .cls
, .sty
or .bib
files), look into it!
Once you have a conceptual understanding of a texmf
tree the following might be useful:
Find your TEXMFHOME
using:
$ kpsewhich -var-value TEXMFHOME
TEXMFHOME
remember to run
$ mktexlsr /path/to/TEXMFHOME
If you have never tried using Linux I would recommend trying Fedora Linux if your life permits it (check e.g. This video). Just find a tutorial on how to install it (e.g. This video) and try! - it's free and open source! (The distribution does not matter as long as it is beginner-friendly)
Here are some selected dotfiles.
<Ctrl-Shift-S>
) of Evolution under plugins>External editor>Configuration
, or it is the command
key of the schema org.gnome.evolution.plugin.external-editor
.
We can set it by using
$ gsettings set org.gnome.evolution.plugin.external-editor command "<command>"
path/to/nvim-mail.sh
for Evolution to run when you begin editing an email.
Evolution will run the command with the $1
-argument set to the path to a file containing the content of the email you are writing (it will look like tmp/EVOakjhgka
).
$ gsettings set org.gnome.evolution.plugin.external-editor command "sh path/to/nvim-mail.sh"
#!/bin/bash # $* will be the path to a tmp file that evolution uses to write the email. # Open Neovim in insert mode at the end of the first line alacritty -e nvim $*
#!/bin/bash # $* will be the path to a tmp file that evolution uses to write the email. # Check if the mail is empty if [[ $(cat $*) == "" ]]; then ▎ # Add "start" to it ▎ echo "start" > $* else ▎ # check if this is a reply by checking if the first ▎ # character of the second-to-last line i a ">". ▎ lastline=$(tail -n 2 $* | head -n 1) ▎ if [[ ${lastline:0:1} == ">" ]]; then ▎ ▎ # add "start" and empty lines since it is a reply ▎ ▎ sed -i '1s/^/start\n\n\n/' $* ▎ fi fi # Open Neovim in insert mode at the end of the first line alacritty -e nvim -u /home/soren/.config/hypr/configs/mail-nvim/init.lua -c "startinsert!" $*
"start"
to the file to be able to use a snippet.
I made a /path/to/init.lua
specifically for mail (that e.g. makes nvim treat the file as markdown and some snippets for writing emails).
the -c "startinsert!"
makes nvim open in isertmode at the end of the first line.
.md
-file)