emacs: update find-system to work between cl and clojure vim: rearrange vimrc_work
BWGNLG4PJFLOW4GDWTXIE46CQT5DKZOZZKCDJ5AQI3Y6VBJRY3YQC
ICINBTQ67TAXFK5BHEYTQCQZ7XVRL5ZM6Q66GAFJKQXSW2RO6J6QC
RXCY7LD6ZRIOIKZEYKLMCYPMQPXF4DOEEFBDLVR2B22BXLZJFFBQC
A3TVGLVHSVLMEHLHB3TPBSD3QGNVGX3DIK6BEBDTTHWBNW4ALMRAC
XI62GRUV7UXWLGWBMPSDNMOTPPYPSP4XITW5UPT7PQLKW7V27K4AC
MVGZ575CHTEYOYZJ22DZDSVSYWHW7U3BFUKSQIPDDQYWVASSUQLQC
TGD23KBV2V7J7FFX7FDBENYMGDIOMS2JNOIZAYNXGQ52E4CQNJYAC
DWJHLZWVL7RM2WQXN3ZJTJXXKUEUNQLL37TMMTPL7NL375M2QJCQC
UIXIJMKKE7STQ65EALHSRFO7J64YCRPRQOQRAX7FJ27455W4X3WAC
6HUFYCGEVDMIGWJUAM6JECBJW4KCR4OK5W3AUKG3EPELO3XVVOJAC
S2SV4SWD5IXE5GGJSLRQ6VE2FGS2J7DK4CFN2E4AXR2DWXKELVAAC
IOXOZB2VUXVUEINLFBT4SPSJV32X5ZFT5FKSVRAIEXEFQJLG6MHQC
2GNS6EEXJ7EEZWESALVQ2QOGEVWOEE4VC6HOKCLL7UTEPFACJYKQC
IOVPOFAVXEQIZ7BCFVVAWFW3RYFXPK2GOILDWA6N6QHQHLAJ4XTAC
git-gh-create() {
local repo_name=${1?need a repo name}
regexp-replace repo_name '[" ]' '-'
local GH_TOKEN
source "$HOME/.github-token"
jq '{full_name, clone_url, ssh_url}' <( (
curl -XPOST \
-u "fiddlerwoaroof:$GH_TOKEN" \
https://api.github.com/user/repos \
-H 'Content-Type: application/json' \
--data-binary @- <<-EOF
{
"name": "${repo_name}"
}
EOF
) )
}
call unite#custom#source('file,file/new,buffer,file_rec','matchers','matcher_fuzzy')
autocmd FileType unite call s:unite_my_settings()
function! s:unite_my_settings()
" Overwrite settings.
let b:SuperTabDisabled=1
imap <buffer><expr> <C-v> unite#do_action('vsplit')
imap <buffer><expr> <C-s> unite#do_action('split')
imap <buffer> <Tab> <Plug>(unite_complete)
imap <buffer> <C-j> <Plug>(unite_select_next_line)
imap <buffer> <Down> <Plug>(unite_select_next_line)
imap <buffer> <C-k> <Plug>(unite_select_previous_line)
imap <buffer> <Up> <Plug>(unite_select_previous_line)
"}}}3
"window keybindings {{{2
autocmd FileType unite call s:unite_my_settings()
function! s:unite_my_settings()
" Overwrite settings.
let b:SuperTabDisabled=1
imap <buffer><expr> <C-v> unite#do_action('vsplit')
imap <buffer><expr> <C-s> unite#do_action('split')
imap <buffer> <Tab> <Plug>(unite_complete)
imap <buffer> <C-j> <Plug>(unite_select_next_line)
imap <buffer> <Down> <Plug>(unite_select_next_line)
imap <buffer> <C-k> <Plug>(unite_select_previous_line)
imap <buffer> <Up> <Plug>(unite_select_previous_line)
runtime ftplugin/man.vim
let g:ft_man_open_mode = 'vert'
let g:ft_man_folding_enable = 1
autocmd FileType man setlocal foldmethod=indent foldenable foldlevel=0
(defun intercept-print (f)
(print f)
f)
(cl-defmethod fwoar--find-system (&context (major-mode clojure-mode))
(let ((systems (directory-files
(locate-dominating-file default-directory
(lambda (n)
(or (directory-files n nil "project.clj")
(directory-files n nil "build.boot")
(directory-files n nil "deps.edn")
(directory-files n nil "shadow-cljs.edn"))))
t "^\\(project.clj\\|build.boot\\|deps.edn\\|shadow-cljs.edn\\)$")))
(find-file (if (not (null (cdr systems)))
(helm-comp-read "system:" systems)
(car systems)))))