diff --git a/dotfiles/vim.org b/dotfiles/vim.org index c4cfde0..dc54b63 100644 --- a/dotfiles/vim.org +++ b/dotfiles/vim.org @@ -577,31 +577,30 @@ au BufRead,BufNewFile *.md setlocal spell spelllang=fr,en ** LaTeX #+begin_src vimrc -" TODO : améliorer ça -au BufRead,BufNewFile *.tikz set filetype=tex -let tex_no_error=1 " TODO: used to not highlight underscores -au BufRead,BufNewFile *.tex set filetype=tex -au BufRead,BufNewFile *.tex let b:AutoPairs={'(':')', '[':']', '{':'}',"'":"'",'"':'"', '`':'`', '$':'$'} + au BufRead,BufNewFile *.tikz set filetype=tex + let tex_no_error=1 " used to not highlight underscores + au BufRead,BufNewFile *.tex set filetype=tex + au BufRead,BufNewFile *.tex let b:AutoPairs={'(':')', '[':']', '{':'}',"'":"'",'"':'"', '`':'`', '$':'$'} -au BufRead,BufNewFile *.tex set iskeyword+=- + au BufRead,BufNewFile *.tex set iskeyword+=- -" " clear the current list of matches that cause error-highlighting -" syn clear texOnlyMath -" " still mark '^' as an error outside of math mode -" syn match texOnlyMath /[\^]/ + " " clear the current list of matches that cause error-highlighting + " syn clear texOnlyMath + " " still mark '^' as an error outside of math mode + " syn match texOnlyMath /[\^]/ -" autocmd FileType tex,tikz nnoremap lt (vimtex-toc-toggle) -" autocmd FileType tex,tikz nnoremap ll (vimtex-labels-open) -" autocmd FileType tex,tikz nnoremap lv (vimtex-view) -" autocmd FileType tex,tikz nnoremap lf (vimtex-reverse-search) + " autocmd FileType tex,tikz nnoremap lt (vimtex-toc-toggle) + " autocmd FileType tex,tikz nnoremap ll (vimtex-labels-open) + " autocmd FileType tex,tikz nnoremap lv (vimtex-view) + " autocmd FileType tex,tikz nnoremap lf (vimtex-reverse-search) -" " Make Tikz -" nnoremap mt :Make pdf t=tikz f=%:t:r -" nnoremap mto :make open t=tikz f=%:t:r + " " Make Tikz + " nnoremap mt :Make pdf t=tikz f=%:t:r + " nnoremap mto :make open t=tikz f=%:t:r -" " Make LaTeX -" nnoremap ml :Make pdf f=%:t:r -" nnoremap mlo :make open f=%:t:r + " " Make LaTeX + " nnoremap ml :Make pdf f=%:t:r + " nnoremap mlo :make open f=%:t:r #+end_src ** Arduino @@ -615,90 +614,79 @@ au BufRead,BufNewFile *.ino set filetype=arduino ** Python #+begin_src vimrc -let g:slime_python_ipython = 1 + let g:slime_python_ipython = 1 -au FileType python setlocal expandtab -au FileType python setlocal tabstop=4 -au FileType python setlocal shiftwidth=4 + au FileType python setlocal expandtab + au FileType python setlocal tabstop=4 + au FileType python setlocal shiftwidth=4 -" Run Section -au FileType python nmap SlimeParagraphSend + " Run Section + au FileType python nmap SlimeParagraphSend -" Run Selected text -au FileType python vmap SlimeRegionSend + " Run Selected text + au FileType python vmap SlimeRegionSend -" CD to directory of current file -" TODO - Should enter the command. This just output the command without runing -" it... -au FileType python nmap c :SlimeSend0('cd '.expand('%:p:h')) + " CD to directory of current file + au FileType python nmap c :SlimeSend0('cd '.expand('%:p:h')) -" let python_highlight_all = 1 -" au FileType python syn keyword pythonDecorator True None False self + " let python_highlight_all = 1 + " au FileType python syn keyword pythonDecorator True None False self -" au BufNewFile,BufRead *.jinja set syntax=htmljinja -" au BufNewFile,BufRead *.mako set ft=mako + " au BufNewFile,BufRead *.jinja set syntax=htmljinja + " au BufNewFile,BufRead *.mako set ft=mako -" au FileType python map F :set foldmethod=indent + " au FileType python map F :set foldmethod=indent -" au FileType python inoremap $r return -" au FileType python inoremap $i import -" au FileType python inoremap $p print -" au FileType python inoremap $f #--- a -" au FileType python map 1 /class -" au FileType python map 2 /def -" au FileType python map C ?class -" au FileType python map D ?def + " au FileType python inoremap $r return + " au FileType python inoremap $i import + " au FileType python inoremap $p print + " au FileType python inoremap $f #--- a + " au FileType python map 1 /class + " au FileType python map 2 /def + " au FileType python map C ?class + " au FileType python map D ?def #+end_src ** Matlab #+begin_src vimrc -" TODO Run Section (delimited by %%) -au FileType matlab nmap mm SlimeParagraphSend -let g:which_key_map_local.m = { 'name' : '+matlab' } + " Run Section (delimited by %%) + au FileType matlab nmap mm SlimeParagraphSend + let g:which_key_map_local.m = { 'name' : '+matlab' } -" Run either Selected text -au FileType matlab vmap mm SlimeRegionSend -let g:which_key_map_local.mm = 'run-code' + " Run either Selected text + au FileType matlab vmap mm SlimeRegionSend + let g:which_key_map_local.mm = 'run-code' -func! GetSelectedText() + func! GetSelectedText() normal gv"xy let result = getreg("x") normal gv return result -endfunc + endfunc -" Help on the current selection -au FileType matlab vmap mh :SlimeSend0('help '.expand(GetSelectedText())) -let g:which_key_map_local.mh = 'help' + " Help on the current selection + au FileType matlab vmap mh :SlimeSend0('help '.expand(GetSelectedText())) + let g:which_key_map_local.mh = 'help' -" Documentation on the current selection -au FileType matlab vmap mH :SlimeSend0('doc '.expand(GetSelectedText())) -let g:which_key_map_local.mh = 'help' + " Documentation on the current selection + au FileType matlab vmap mH :SlimeSend0('doc '.expand(GetSelectedText())) + let g:which_key_map_local.mh = 'help' -" Open the current file in the Matlab Editor (usefull for debuging) -au FileType matlab nmap me :SlimeSend0('edit '.expand('%:p')) -let g:which_key_map_local.me = 'edit-gui' + " Open the current file in the Matlab Editor (usefull for debuging) + au FileType matlab nmap me :SlimeSend0('edit '.expand('%:p')) + let g:which_key_map_local.me = 'edit-gui' -" Run all the file -au FileType matlab nmap mr :SlimeSend0('run '.expand('%:t')) -let g:which_key_map_local.mr = 'run-file' + " Run all the file + au FileType matlab nmap mr :SlimeSend0('run '.expand('%:t')) + let g:which_key_map_local.mr = 'run-file' -" Send "cd filepath" to matlab -au FileType matlab nmap mc :SlimeSend0('cd '.expand('%:p:h')) -let g:which_key_map_local.mr = 'cd-file' + " Send "cd filepath" to matlab + au FileType matlab nmap mc :SlimeSend0('cd '.expand('%:p:h')) + let g:which_key_map_local.mr = 'cd-file' -" Open workspace -au FileType matlab nmap mw :SlimeSend0('workspace') -let g:which_key_map_local.mr = 'workspace' -#+end_src - -** Sage -#+begin_src vimrc -" TODO Run Section -au FileType sage.python nmap SlimeParagraphSend - -" Run Selected text -au FileType sage.python vmap SlimeRegionSend + " Open workspace + au FileType matlab nmap mw :SlimeSend0('workspace') + let g:which_key_map_local.mr = 'workspace' #+end_src ** Save Which Key Configuration @@ -963,355 +951,352 @@ let g:tex_conceal = "" * Bindings ** Vim Which Key #+begin_src vimrc -nnoremap :WhichKey '' + nnoremap :WhichKey '' -let g:which_key_map = {} + let g:which_key_map = {} #+end_src ** Direct ones #+begin_src vimrc -" Switch with last buffer -nnoremap :e # -" let g:which_key_map. = 'last-buffer' + " Switch with last buffer + nnoremap :e # + " let g:which_key_map. = 'last-buffer' #+end_src ** Quit #+begin_src vimrc -let g:which_key_map.q = { 'name' : '+quit' } + let g:which_key_map.q = { 'name' : '+quit' } -" Quit -nnoremap qq :qa -let g:which_key_map.q.q = 'quit' + " Quit + nnoremap qq :qa + let g:which_key_map.q.q = 'quit' -" Quit - Force -nnoremap qQ :qa! -let g:which_key_map.q.Q = 'quit-force' + " Quit - Force + nnoremap qQ :qa! + let g:which_key_map.q.Q = 'quit-force' -" Quit - Save -nnoremap qw :wq -let g:which_key_map.q.w = 'quit-save' + " Quit - Save + nnoremap qw :wq + let g:which_key_map.q.w = 'quit-save' -" Quit - Save all -nnoremap qW :wqa -let g:which_key_map.q.W = 'quit-save-all' + " Quit - Save all + nnoremap qW :wqa + let g:which_key_map.q.W = 'quit-save-all' #+end_src ** Files #+begin_src vimrc -let g:which_key_map.f = { 'name' : '+files' } + let g:which_key_map.f = { 'name' : '+files' } -" Fast saving -nnoremap fs :w! -let g:which_key_map.f.s = 'save-file' + " Fast saving + nnoremap fs :w! + let g:which_key_map.f.s = 'save-file' -" Fast saving all -nnoremap fS :wa! -let g:which_key_map.f.S = 'save-all' + " Fast saving all + nnoremap fS :wa! + let g:which_key_map.f.S = 'save-all' -" Find Files -noremap ff :Files -let g:which_key_map.f.f = 'find-file' + " Find Files + noremap ff :Files + let g:which_key_map.f.f = 'find-file' -" Find File corresping to Word -nnoremap fw + " Find File corresping to Word + nnoremap fw \ :call fzf#vim#files('.', fzf#vim#with_preview({'options': ['--query', expand('')]})) -" TODO - Add visual keymap -" vnoremap fw - " \ :call fzf#vim#files('.', fzf#vim#with_preview({'options': ['--query', 0]})) -let g:which_key_map.f.w = 'find-file-word' + + let g:which_key_map.f.w = 'find-file-word' #+end_src ** Buffers #+begin_src vimrc -let g:which_key_map.b = { 'name' : '+buffers' } + let g:which_key_map.b = { 'name' : '+buffers' } -" Buffer Create -noremap bc :enew -let g:which_key_map.b.c = 'buffer-create' + " Buffer Create + noremap bc :enew + let g:which_key_map.b.c = 'buffer-create' -" Buffer Delete -noremap bd :Bclose -let g:which_key_map.b.d = 'buffer-delete' + " Buffer Delete + noremap bd :Bclose + let g:which_key_map.b.d = 'buffer-delete' -" Buffer Delete all others -noremap bD :bufdo bd -let g:which_key_map.b.D = 'buffer-delete-others' + " Buffer Delete all others + noremap bD :bufdo bd + let g:which_key_map.b.D = 'buffer-delete-others' -" Buffer Next -noremap bn :bnext -let g:which_key_map.b.n = 'buffer-next' + " Buffer Next + noremap bn :bnext + let g:which_key_map.b.n = 'buffer-next' -" Buffer Previous -noremap bp :bprevious -let g:which_key_map.b.p = 'buffer-previous' + " Buffer Previous + noremap bp :bprevious + let g:which_key_map.b.p = 'buffer-previous' -" Find Buffers -noremap bf :Buffers -let g:which_key_map.b.f = 'buffer-find' + " Find Buffers + noremap bf :Buffers + let g:which_key_map.b.f = 'buffer-find' -" Buffer Home (startify) -noremap bh :Startify -let g:which_key_map.b.h = 'buffer-home' + " Buffer Home (startify) + noremap bh :Startify + let g:which_key_map.b.h = 'buffer-home' -" CD to buffer path -noremap bw :cd %:p:h:pwd -let g:which_key_map.b.w = 'buffer-pwd' + " CD to buffer path + noremap bw :cd %:p:h:pwd + let g:which_key_map.b.w = 'buffer-pwd' #+end_src ** Tabs #+begin_src vimrc -let g:which_key_map.t = { 'name' : '+tabs' } + let g:which_key_map.t = { 'name' : '+tabs' } -" Let 'tt' toggle between this and the last accessed tab -let g:lasttab = 1 -au TabLeave * let g:lasttab = tabpagenr() + " Let 'tt' toggle between this and the last accessed tab + let g:lasttab = 1 + au TabLeave * let g:lasttab = tabpagenr() -" Tab New -nnoremap tc :tabnew -let g:which_key_map.t.c = 'tab-create' + " Tab New + nnoremap tc :tabnew + let g:which_key_map.t.c = 'tab-create' -" Tab Delete -nnoremap td :tabclose -let g:which_key_map.t.d = 'tab-delete' + " Tab Delete + nnoremap td :tabclose + let g:which_key_map.t.d = 'tab-delete' -" Tab Maximize -nnoremap tD :tabonly -let g:which_key_map.t.D = 'tab-delete-others' + " Tab Maximize + nnoremap tD :tabonly + let g:which_key_map.t.D = 'tab-delete-others' -" Tab Left -nnoremap th gt -let g:which_key_map.t.h = 'tab-left' + " Tab Left + nnoremap th gt + let g:which_key_map.t.h = 'tab-left' -" Tab Right -nnoremap tl gT -let g:which_key_map.t.l = 'tab-right' + " Tab Right + nnoremap tl gT + let g:which_key_map.t.l = 'tab-right' -" Tab Move Left -nnoremap tH :tabmove -1 -let g:which_key_map.t.H = 'tab-move-left' + " Tab Move Left + nnoremap tH :tabmove -1 + let g:which_key_map.t.H = 'tab-move-left' -" Tab Move Right -nnoremap tL :tabmove +1 -let g:which_key_map.t.L = 'tab-move-right' + " Tab Move Right + nnoremap tL :tabmove +1 + let g:which_key_map.t.L = 'tab-move-right' -" Tab Toggle -nnoremap tt :exe "tabn ".g:lasttab -let g:which_key_map.t.t = 'tab-toggle' + " Tab Toggle + nnoremap tt :exe "tabn ".g:lasttab + let g:which_key_map.t.t = 'tab-toggle' #+end_src ** Terminals #+begin_src vimrc -let g:which_key_map.T = { 'name' : '+terminals' } + let g:which_key_map.T = { 'name' : '+terminals' } -" Quickly create a new terminal in a new tab -nnoremap Tc :tab new:term -let g:which_key_map.T.c = 'term-create' + " Quickly create a new terminal in a new tab + nnoremap Tc :tab new:term + let g:which_key_map.T.c = 'term-create' -" Quickly create a new terminal in a vertical split -nnoremap T/ :vsplit:term -" let g:which_key_map.T./ = 'term-vert' + " Quickly create a new terminal in a vertical split + nnoremap T/ :vsplit:term + " let g:which_key_map.T./ = 'term-vert' -" Quickly create a new terminal in a horizontal split -nnoremap T- :split:term -" let g:which_key_map.T.- = 'term-hor' + " Quickly create a new terminal in a horizontal split + nnoremap T- :split:term + " let g:which_key_map.T.- = 'term-hor' #+end_src ** Splits / Windows #+begin_src vimrc -let g:which_key_map.w = { 'name' : '+windows' } + let g:which_key_map.w = { 'name' : '+windows' } -" Split Horizontal -nnoremap w- :split -" let g:which_key_map.w.- = 'win-hor' + " Split Horizontal + nnoremap w- :split + " let g:which_key_map.w.- = 'win-hor' -" Split Vertical -nnoremap w/ :vsplit -" let g:which_key_map.w./ = 'win-vert' + " Split Vertical + nnoremap w/ :vsplit + " let g:which_key_map.w./ = 'win-vert' -" Split Maximize -nnoremap wD o -let g:which_key_map.w.D = 'win-delete-others' + " Split Maximize + nnoremap wD o + let g:which_key_map.w.D = 'win-delete-others' -" Split Delete -nnoremap wd q -let g:which_key_map.w.d = 'win-delete' + " Split Delete + nnoremap wd q + let g:which_key_map.w.d = 'win-delete' -" Split Go Left -nnoremap wh :wincmd h -let g:which_key_map.w.h = 'win-left' + " Split Go Left + nnoremap wh :wincmd h + let g:which_key_map.w.h = 'win-left' -" Split Go Down -nnoremap wj :wincmd j -let g:which_key_map.w.j = 'win-down' + " Split Go Down + nnoremap wj :wincmd j + let g:which_key_map.w.j = 'win-down' -" Split Go Up -nnoremap wk :wincmd k -let g:which_key_map.w.k = 'win-up' + " Split Go Up + nnoremap wk :wincmd k + let g:which_key_map.w.k = 'win-up' -" Split Go Right -nnoremap wl :wincmd l -let g:which_key_map.w.l = 'win-right' + " Split Go Right + nnoremap wl :wincmd l + let g:which_key_map.w.l = 'win-right' -" Split to Tab -nnoremap wt T -let g:which_key_map.w.t = 'win-make-tab' + " Split to Tab + nnoremap wt T + let g:which_key_map.w.t = 'win-make-tab' -" Find window -nnoremap wf :Windows -let g:which_key_map.w.f = 'win-find' + " Find window + nnoremap wf :Windows + let g:which_key_map.w.f = 'win-find' -" Maximize window -nnoremap wm :call MaximizeToggle() -let g:which_key_map.w.m = 'win-maximize' + " Maximize window + nnoremap wm :call MaximizeToggle() + let g:which_key_map.w.m = 'win-maximize' -function! MaximizeToggle() + function! MaximizeToggle() if exists("s:maximize_session") - exec "source " . s:maximize_session - call delete(s:maximize_session) - unlet s:maximize_session - let &hidden=s:maximize_hidden_save - unlet s:maximize_hidden_save + exec "source " . s:maximize_session + call delete(s:maximize_session) + unlet s:maximize_session + let &hidden=s:maximize_hidden_save + unlet s:maximize_hidden_save else - let s:maximize_hidden_save = &hidden - let s:maximize_session = tempname() - set hidden - exec "mksession! " . s:maximize_session - only + let s:maximize_hidden_save = &hidden + let s:maximize_session = tempname() + set hidden + exec "mksession! " . s:maximize_session + only endif -endfunction + endfunction #+end_src ** Check Spell #+begin_src vimrc -let g:which_key_map.S = { 'name' : '+spell-check' } + let g:which_key_map.S = { 'name' : '+spell-check' } -" CheckSpell Toggle -noremap St :setlocal spell! -let g:which_key_map.S.t = 'spell-toggle' + " CheckSpell Toggle + noremap St :setlocal spell! + let g:which_key_map.S.t = 'spell-toggle' -" CheckSpell Correct -noremap Sc z= -let g:which_key_map.S.c = 'spell-correct' + " CheckSpell Correct + noremap Sc z= + let g:which_key_map.S.c = 'spell-correct' -" CheckSpell Do first -noremap SC 1z= -let g:which_key_map.S.C = 'spell-correct-first' + " CheckSpell Do first + noremap SC 1z= + let g:which_key_map.S.C = 'spell-correct-first' -" CheckSpell Language -noremap Sl :set spelllang= -let g:which_key_map.S.l = 'spell-language' + " CheckSpell Language + noremap Sl :set spelllang= + let g:which_key_map.S.l = 'spell-language' -" CheckSpell Next -noremap Sn ]s -let g:which_key_map.S.n = 'spell-next' + " CheckSpell Next + noremap Sn ]s + let g:which_key_map.S.n = 'spell-next' -" CheckSpell Next and correct -noremap SN ]s1z= -let g:which_key_map.S.N = 'spell-next-correct' + " CheckSpell Next and correct + noremap SN ]s1z= + let g:which_key_map.S.N = 'spell-next-correct' -" CheckSpell Previous -noremap Sp [s -let g:which_key_map.S.p = 'spell-prev' + " CheckSpell Previous + noremap Sp [s + let g:which_key_map.S.p = 'spell-prev' -" CheckSpell Previous and correct -noremap SP [s1z= -let g:which_key_map.S.P = 'spell-prev-correct' + " CheckSpell Previous and correct + noremap SP [s1z= + let g:which_key_map.S.P = 'spell-prev-correct' -" CheckSpell Add to dictionnary -noremap Sa zg -let g:which_key_map.S.a = 'spell-add-dict' + " CheckSpell Add to dictionnary + noremap Sa zg + let g:which_key_map.S.a = 'spell-add-dict' #+end_src ** Make #+begin_src vimrc -let g:which_key_map.m = { 'name' : '+make' } + let g:which_key_map.m = { 'name' : '+make' } -" Make Make -nnoremap mm :Make -B -let g:which_key_map.m.m = 'make' + " Make Make + nnoremap mm :Make -B + let g:which_key_map.m.m = 'make' -" Make Clean -nnoremap mc :Make clean -let g:which_key_map.m.c = 'make-clean' + " Make Clean + nnoremap mc :Make clean + let g:which_key_map.m.c = 'make-clean' -" Make Force -nnoremap mf :Make! -B -let g:which_key_map.m.f = 'make-force' + " Make Force + nnoremap mf :Make! -B + let g:which_key_map.m.f = 'make-force' -" Make Run -nnoremap mr :Make! run -let g:which_key_map.m.r = 'make-run' + " Make Run + nnoremap mr :Make! run + let g:which_key_map.m.r = 'make-run' -" Make Open -nnoremap mo :make! open -let g:which_key_map.m.o = 'make-open' + " Make Open + nnoremap mo :make! open + let g:which_key_map.m.o = 'make-open' #+end_src ** Search #+begin_src vimrc -let g:which_key_map.s = { 'name' : '+search' } + let g:which_key_map.s = { 'name' : '+search' } -" Search History -noremap sh :History -let g:which_key_map.s.h = 'search-history' + " Search History + noremap sh :History + let g:which_key_map.s.h = 'search-history' -" Search Tags -noremap sT :Tags -let g:which_key_map.s.T = 'search-tags' + " Search Tags + noremap sT :Tags + let g:which_key_map.s.T = 'search-tags' -" Search All -noremap sa :Rg -let g:which_key_map.s.g = 'search-all' + " Search All + noremap sa :Rg + let g:which_key_map.s.g = 'search-all' -" Search Word -noremap sw :exe ':Rg ' . expand('') -let g:which_key_map.s.w = 'search-word' + " Search Word + noremap sw :exe ':Rg ' . expand('') + let g:which_key_map.s.w = 'search-word' -" Search todo keyboard -" TODO - should not have to press enter -nnoremap st :Grepper -tool rg -query TODO -let g:which_key_map.s.t = 'search-todos' + " Search todo keyboard + nnoremap st :Grepper -tool rg -query TODO + let g:which_key_map.s.t = 'search-todos' #+end_src ** GIT #+begin_src vimrc -let g:which_key_map.g = { 'name' : '+git' } + let g:which_key_map.g = { 'name' : '+git' } -" Git Gutter -nnoremap gg :SignifyToggle -let g:which_key_map.g.g = 'git-' + " Git Gutter + nnoremap gg :SignifyToggle + let g:which_key_map.g.g = 'git-' -" Git Gutter Highlight -nnoremap gG :SignifyToggleHighlight -let g:which_key_map.g.G = 'git-' + " Git Gutter Highlight + nnoremap gG :SignifyToggleHighlight + let g:which_key_map.g.G = 'git-' -" Git Commit -nnoremap gc :Gcommit -let g:which_key_map.g.c = 'git-commit' + " Git Commit + nnoremap gc :Gcommit + let g:which_key_map.g.c = 'git-commit' -" Git Status -nnoremap gs :Gstatus -let g:which_key_map.g.s = 'git-status' + " Git Status + nnoremap gs :Gstatus + let g:which_key_map.g.s = 'git-status' -" Git Diff -nnoremap gd :Gdiff -let g:which_key_map.g.d = 'git-diff' + " Git Diff + nnoremap gd :Gdiff + let g:which_key_map.g.d = 'git-diff' -" Git Blame -nnoremap gb :Gblame -let g:which_key_map.g.b = 'git-blame' + " Git Blame + nnoremap gb :Gblame + let g:which_key_map.g.b = 'git-blame' -" Git Visualise -nnoremap gv :GV -let g:which_key_map.g.v = 'git-visualize' + " Git Visualise + nnoremap gv :GV + let g:which_key_map.g.v = 'git-visualize' -" Git File (visualise) -nnoremap gF :GV! -let g:which_key_map.g.F = 'git-file' + " Git File (visualise) + nnoremap gF :GV! + let g:which_key_map.g.F = 'git-file' -" Git Find Commits -noremap gf :Commits -let g:which_key_map.g.f = 'git-find-commit' + " Git Find Commits + noremap gf :Commits + let g:which_key_map.g.f = 'git-find-commit' #+end_src ** Errors