notes on tools I am using
-
Macvim
-
Rectangle
- cmd+crl+<- -> Left Half
- cmd+crl+-> -> Right Half
- q cmd+ctl+return -> Full Screen
-
iterm2
- cmd+shift+D -> splits the window vertically
- cmd+D -> splits the window horizontally
-
python in emacs
-
pyenv for python versions
M-x pyvenv-workon
SPC m V w -> work on virtual environment in WORKON_HOME -
using ipython
spc m s i -> start a Ipython for PERL SPC m s F -> send function and switch to REPL in insert mode
-
debug
- insert debug -
run python in shell
SPC m c c -> exec current file in a comint shell
-
testing - pytest
SPC m t t -> launch the current test (function)
-
reference
-
-
spacesmacs
-
fix package download err > emacs --insecure > SPC q q 退出 Emacs 并杀掉服务器
-
vim
-
python > SPC m V w -> work on virtual environment in WORKON_HOME
> SPC m c c -> Execute current file in a comint shell -
standard ML
- SPC m s b -> Send buffer to REPL
- ctr-c ctr-s -> send buffer to REPL
- ctr-d -> stop REPL
- C-c M-o in the REPL buffer
-
keys
- spc 1 - switch to window 1
- SPC + h -> help
- SPC f e R 来重载配置
- SPC b b -> list all buffer
- w -> advance one word
- b -> back one word
- SPC f t -> toggle NeoTree at pwd
- u -> Undo last change
- SPC 1 -> switch windows
- SPC w d -> Close current window +
- 'i' to be in insert editor, use 'ESC' key to be in normal state
- d d - cut the line under cursor
- y y -> copy line
- p -> paste
- v -> highlight text
- y -> yank
- d -> delete highlight text
- dw -> delete word
- d$ -> delete to end of line
- g g -> beginning of file
- G -> end of file
- b -> back one word
- w -> advance one word
-
notes:
-
reload config file
M-x load-file
M-x eval-buffer -
move
c-n -> down
c-p -> up
-
-
markdown in emacs
-
preview the markdown buffer, and open a new tab in the browser
> F5 -> grip-mode -
emacs
-
use emacs not emacsclient now
-
emacs &
-
-
autoload emacs daemon when logining > launchctl unload /Users/zhaowenlong/Library/LaunchAgents/gnu.emacs.daemon.plist
> launchctl load -w /Users/zhaowenlong/Library/LaunchAgents/gnu.emacs.daemon.plist -
also could use "emacs --fg-daemon" to start the daemon mode
-
reference