Personal emacs config i decided to craft together beacause all the pre built configs are either really slow and bloated with unnecessary packages or too many packgages are missing.
This emacs config is properly configured for:
- c/c++/objc
- haskell
- markdown
- add keybindings description for all major and minor modes
- list all used modes and give brief description about them
- insert photos or gifs about this config in action
- usage of compilation database for irony
- Following packages need to be installed on your system:
- CMake >= 2.8.3
- libclang
- To install irony-server and just type this in emacs:
M-x irony-install-server RET.
</br/>
For many Un*x operating systems, all you need to do is run:
curl -sSL https://get.haskellstack.org/ | sh
The simpliest method to install an keeping pandoc up-to-date is using brew
$ brew install pandoc
$ brew install pandoc-citeproc
Pandoc is in the Debian, Ubuntu, Slackware, Arch, Fedora, NiXOS, openSUSE, and gentoo repositories.
On Debian/Ubuntu:
$ apt-get install pandoc pandoc-citeproc
On Fedora:
$ dnf install pandoc pandoc-citeproc
- M-s Input one char, jump to it with a tree
- C-' Input two chars, jump to it with a tree
- C-s Search in current buffer
- C-x C-f Find file
- M-x
- C-c g Git
- C-c j Git grep
- C-c k Counsel
- C-c C-r ivy resume
- S-d Find directory in project
- S-f Find file in project
- S-g Grep in whole project
- S-p Switch project
- C-c C-c l to turn on markdown-live-preview-mode
- C-c C-c v to export and preview
- C-c C-c p to only preview
- C-c C-C e to only exportin
- C-x C-k Delete file opened currently in buffer
- C-x b Switch to buffer
- C-x C-b Open iBuffer
- C-x | Split window horizontally instead
- C- _ Split window vertically instead
- C-x u Undo Tree
- C-z Undo
- C-
Shift
-z - M-
up
Move line or active region up - M-
down
Move line or active region down - C-x C-r Edit current file as root
- C-c w Show all whitespace characters
- C-x o Switch window
- C-x 1 Focus on current window (Deletes other windows | Restore other windows)
- C-x 2 Split window vertically
- C-x 3 split window horizontally
- F7 split window
Shift
-up/down/right/left
move to windows up/down/right/left
- C-x g Google search
- C-c t Open a terminal buffer
- C-x c Show word count