speed emacs
After I got used to emacs , I found all the popular emacs configurations work slow on Windows. Yet Windows is my main work platform, so I want to find a set of useful packages which is still fast on Windows.
How to install
- 1. backup your .emacs.d
- 2. git clone https://github.com/GreyZhang/speed_emacs ~/.emacs.d
- 3. run you emacs and wait for installation compelete.
Package list:
emacs
- This is not a package, but emacs itself.
I add this beacause there are still some configuration just for pure emacs.
- Better support for Chinese word format.
- explicitly set the prefered coding systems to avoid annoying prompt from emacs (especially on Microsoft Windows).
dired-mode
F5 -> the hot key for dired-jump
Add revert function to dired-mode hook so the files displayed in dired buffer can be refreshed automatically.
evil
- This package is just make emacs act as vim.
- key bindings
C-u -> ued for vim scroll up.
C-] -> jump to tag at point.
C-o -> jump backword.
smex
Smex is a M-x enhancement for Emacs. Built on top of Ido, it provides a convenient interface to your recently and most frequently used commands. And to all the other commands, too.
Refer to: smex
key bindings
M-x -> run smex
amx
Amx can provide same functions like smex, yet it is a package which is still alive.
Amx or smex should be installed because it can be the engine of counsel-M-x.
recentf mode
- Use “SPC fr” hot key to invoke recent opend files.
- After recent opened files list is opened, n/p can be used to navigate the list.
evil-leader
- This package support some function like the leader key in Vim.
- Refer to: evil-leader
- Key bindings(input leader-key first, SPC is my leader-key)
- ff -> find file
- fj -> dired-jump
- fr -> recent opened files
- <SPC> -> sounsel-M-x ;; this can be used to replace M-x which is just like spacemacs.
- pf -> find file in project
- jj -> evil-avy-goto-char
- jJ -> evil-avy-goto-char-2
- pg -> jump to tag defination.
- ca -> search files with ag.
- ss -> swiper ;; same as sapcemacs
- xdw -> delete-trailing-whitespace
- cl -> toggle function for comment-line
for windows navigation
- 1 ‘winum-select-window-1
- 2 ‘winum-select-window-2
- 3 ‘winum-select-window-3
- 4 ‘winum-select-window-4
- 5 ‘winum-select-window-5
- 6 ‘winum-select-window-6
- 7 ‘winum-select-window-7
- 8 ‘winum-select-window-8
- 9 ‘winum-select-window-9
for org-mode
- oit -> insert org-mode structure template
- oas -> org-archive-subtree
- ods ‘org-download-screenshot
- orf ‘org-roam-node-file
- ori ‘org-roam-node-insert
- oru ‘org-roam-ui-mode
AutoPairs
Use electric-pair-mode which already supported by emacs 24.4+.
which-key
- This package can give us some indication for key bindings.
- Refer to: which-key
company
A good package which can help us auto complete anything.
find-file-in-project
Project files management which can be used to replace some functions in projectile.
counsel
This package is the base of counsel-etags, also provide some more enhancement. The new function for M-x is used counsel-M-x of this package instead.
counsel-etags
Create tags and navigation management.
org-pomodoro
A package used for Tomato working method (tomato clock time management)
key bouding
F2 for a org-clock to start.
org-mode
org-startup-truncated is set as nil by default.
hungry-delete
A package used to delet a whitespace character will delete all whitespace until the next non-whitespace character.
This function is enabled by default, can be disabled by comment out g-hungry-delete in g-config.el.
irony/company-irony/company-irony-c-headers
Use these packages to enhance c language development experience.
Refer to:
irony-mode
company-irony
company-c-headers
org-download
This package can help us to write a document includes pictures inserted with org-mode more prodcutively.
key boundings
F8 for org-download-clipboard
Refer to : org-download