- Navigation Your Lisp Code Faster
- Use Org-mode to Management Your Time
- Emacs as a C/C++ IDE
- Magit workflow
- Find, Search and replace
- Org-mode as a blogging engine.
- Spacemacs as a JavaScript/Node.js IDE
C-h f & C-h C-f
C-h v & C-h C-v
SPC s l
SPC f e d
SPC f e i
SPC h L
SPC f e h
SPC h SPC -> SPC s l -> c-h c-f/c-v/f/v
SPC h L -> SPC s l -> c-h c-f/c-v/f/v
SPC f e d -> SPC s l -> c-h c-f/c-v/f/v
SPC f e i -> SPC s l -> c-h c-f/c-v/f/v
Never start to do anything before looking at the agenda view. Why agenda matters? Every successful people almost have a secret who will organize your time and maximize the value of your time. This is the key to long term success. Remember how many times you waste your time with QQ, WeChat, Weibo and B site.
- Important and emergency things goes first, they got A priority, along with important and not emergency tasks.
- A few habits to keep you update to date. Good habit always makes you a good person.
Like: Health, Reading, blogging, family and friendship.
When you start to do a task in the org-agenda view, don’t forget to clock in with pomodoro technicals
- This way you could track your time and effect.
- All the goodness of the pomodoro technicals
You need only one gtd.org file. And many files in org agenda files.
Show it in my gtd.org file.
- Capture a todo with priority and tags.
- capture a chrome links for later reading.
- capture a task with a source code file.
- embed pdf links to todo items such that you could easily access them.
- insert the current chrome tab into place.
- Learn GTD method now!
- Gtags
- ycmd.
tips: Call helm-gtags-update in the .cpp file.
ycmd + comapny-mode
flycheck-ycmd
projectile and find-file-in-project
- SPC g i(magit-init)
- SPC g s(magit-status)
- s-1 (goto unstaged section)
- press tab to view diffs(code review)
- s to stage all changes
- c c -> c-c c-c to commit
- editing the commit message and the diff on the right
- Ammend ( c a)
- write good commit messages
- squash unpushed commits (r l)
- reset commits (l l #)
- select a few line to commits
- discard changes, file wide or line wide
- revert commits
- b B to create branch
- m m to merge
- b b to switch branch
- squash unpushed
- rebase to other branch
- interactive rebase
- P P
- f f / f o to fetch branch
- F to pull
- s-g to send pull request
- cherry pick
- view github files
- Use / and * to start search.
- Use n & N to search forward and backward
C-s to start search. C-c C-o to enter ivy-occur
SPC s s/S to search search C-c C-e to enter edit mode SPC h l(helm-resume)
To search structured word. SPC s l
M-s o to use occur and e to enter edit mode. C-c to finish editing. Edit search result one by one. Edit search result with iedit and multiple cursor.
F3 to save search result, SPC s L to open last save search buffer.
C-c c-e
After narrowing, you could use :%s/old/new/g to replace
Press F1 to launch a menu and type blog
to choose.
Navigation all the blog posts
Enter the title of your new post
You could use all the Org syntax here. But org table is not well supported.
- Headings.
- Insert links.
- Insert Images
- Insert Code(We can even execute the code in the documents, oh my!)
SPC f f –> helm-find-file SPC f r –> open recent file SPC f R –> rename file SPC f c –> copy file SPC f j –> jump to dired SPC f t –> open neo tree SPC f o –> open in external application
SPC b b & SPC b B(i) SPC b h (spacemacs home buffer) SPC b s (scratch buffer) SPC b f (reveal in finder) SPC b w in dired buffer. SPC b n/p (previous or next buffer) SPC b TAB to switch back and forth.
SPC p f and SPC p b
SPC l o –> custom layout SPC l L/s –> load or save layout SPC l l –> switch bewteen layout SPC l TAB –> quick way to switch SPC l ? –> open up the help. SPC p l –> switch to project and create a layout
new file/delete file/rename file new folder/delete folder/rename folder
SPC a r h l to navigate folder j k to preview file
- company-etags vs company-tern
- hippie-expand
- SPC s l to jump to function definitions. ctags.
- SPC m g d/ etags-select
- SPC s p / SPC o s to search keywords
- SPC m g g if use tern.js
- flycheck with jshint / eslint
- js2-mode checking
- jscomint
jscomint has better ES6 support. But the keybinding are not perfect
- nodejs repl
ES6 support is not good, but has better keybinding.
- js beautify