Skip to content

Instantly share code, notes, and snippets.

View natsukagami's full-sized avatar
🍜
Always munching ramen

Natsu Kagami natsukagami

🍜
Always munching ramen
View GitHub Profile

$argon2id$v=19$m=64,t=512,p=2$YNi7Fc6e3vBArJia5AOjfQ$u/KvhebYyccRYegpaXEZ7Q

@natsukagami
natsukagami / latex.kak
Last active March 13, 2021 08:27
More LaTeX support for kak!
## Author: @natsukagami (https://github.com/natsukagami)
##
## To activate, source the file into kakrc and add:
### require-module latex-kak
##
## NOTE: This overrides <a-o>, so if you don't like it, remove it.
provide-module latex-kak %{
# Create a simple begin block, put the cursors in and remove multi-cursor on exit.
define-command -hidden create-begin-block %{
hook global WinSetOption filetype=(latex) %{
map window normal $ "i\(\)<esc>hhi"
map window normal <a-4> "i\[\]<esc>hhi"
# hook window InsertChar @ %{
# }
hook window InsertChar / %{
try %{
execute-keys -draft "hb<a-k>\)<ret>mZ;c\frac{<esc>z<a-:>;Lc}{}<esc>"
execute-keys "<a-;>h"

Keybase proof

I hereby claim:

  • I am natsukagami on github.
  • I am ncpham2410 (https://keybase.io/ncpham2410) on keybase.
  • I have a public key ASD-aCUvHRLRUg0QHhHRyerZ01KRr8gU2McDDxHqug8Iiwo

To claim this, I am signing this object: