This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-05-19
Channels
- # beginners (55)
- # boot (1)
- # chestnut (1)
- # cider (130)
- # clara (31)
- # cljsrn (1)
- # clojure (12)
- # clojure-dev (4)
- # clojure-india (1)
- # clojure-italy (2)
- # clojure-uk (33)
- # clojureindia (1)
- # clojurescript (12)
- # component (1)
- # datascript (5)
- # datomic (2)
- # duct (2)
- # emacs (16)
- # hoplon (1)
- # jobs (1)
- # lumo (13)
- # off-topic (3)
- # onyx (4)
- # remote-jobs (1)
- # schema (1)
- # shadow-cljs (110)
- # spacemacs (2)
- # specter (44)
- # vim (6)
let g:eval_view = 0
augroup RestoreView
autocmd!
autocmd User FireplaceEvalPost call RestoreView()
augroup END
function! FireplaceEval(op)
let g:eval_view = winsaveview()
call feedkeys(a:op, 'ti')
endfunction
function! RestoreView()
if g:eval_view isnot 0
call winrestview(g:eval_view)
let g:eval_view = 0
endif
endfunction
autocmd FileType clojure nmap <buffer><expr> cp FireplaceEval("\<Plug>FireplacePrint")
autocmd FileType clojure nmap <buffer><expr> cpp FireplaceEval("\<Plug>FireplaceCountPrint")
Stop fireplace cp
from jumping all over the place. Haven't tested extensively, just hacked it up now.Much better than my last version which interpreted 'printop'
to make decisions. I expect this actually works everywhere.
Oh nice, never occurred to me that cp
was causing that. I think it would be a nice addition to replant