This repository contains my Emacs configuration. You can clone it as it comes or simply use whatever part you might need/like. The look and feel of the Emacs frame is based on the atom-one-dark-theme with some minor changes.
This configuration is mainly tested on the HEAD version of Emacs (currently 27.x) running on macOS. If your're using brew, as a package manager on macOS, please install Emacs with the below command:
brew tap daviderestivo/emacs-head
brew install emacs-head --HEAD --with-cocoa --with-no-frame-refocus --with-imagemagick --with-jansson
or if you prefer Emacs 26.x:
brew tap daviderestivo/emacs-head
brew install emacs-head --with-cocoa --with-no-frame-refocus --with-imagemagick --with-multicolor-fonts
Please run the below commands to backup your current Emacs config and clone this repo:
cd ~
mv .emacs.d .emacs.d.bak
git clone https://github.com/daviderestivo/emacs-config.git .emacs.d
cd .emacs.d
git submodule init
git submodule update
git submodule foreach --recursive git checkout master
Before you start emacs please edit ~/.emacs.d/personal.el.example
adding your personal informations and rename it to
~/.emacs.d/personal.el
.
The following is the list of the included packages. Packages dependencies are not listed.
- cisco-router-mode [Link]
- cider [Link]
- company-lsp [Link]
- company-mode [Link]
- dap-mode [Link]
- dap-java [Link]
- diff-hl [Link]
- dockerfile-mode [Link]
- elisp-bug-hunter [Link]
- elpy [Link]
- geiser [Link]
- lsp-mode [Link]
- lsp-java [Link]
- lsp-java-treemacs [Link]
- lsp-ui [Link]
- jinja2-mode [Link]
- json-mode [Link]
- magit [Link]
- magit-org-todos [Link]
- markdown-mode [Link]
- projectile [Link]
- py-autopep8 [Link]
- smartparens [Link]
- treemacs-projectile [Link]
- yaml-mode [Link]
- yang-mode [Link]
- yasnippet [Link]
- ob-ipython [Link]
- org-beautify-theme [Link]
- org-bullets [Link]
- org-download [Link]
- idle-org-agenda [Link]
- org-mind-map [Link
- org-plus-contrib [Link]
- all-the-icons [Link]
- atom-one-dark-theme [Link]
- auto-highlight-symbol [Link]
- beacon [Link]
- emacs-dashboard [Link]
- eyebrowse [Link]
- goto-line-preview [Link]
- highlight-indent-guides [Link]
- ibuffer-sidebar [Link]
- imenu-list [Link]
- rainbow-delimiters [Link]
- smart-mode-line [Link]
- smart-mode-line-atom-one-dark-theme [Link]
- transpose-frame [Link]
- treemacs-icons-dired [Link]
- volatile-highlights [Link]
- auto-package-update [Link]
- auto-sudoedit [Link]
- avy [Link]
- command-log-mode [Link]
- esh-autosuggest [Link]
- exec-path-from-shell [Link]
- load-bash-alias [Link]
- move-text [Link]
- multiple-cursors [Link]
- open-junk-file [Link]
- psession [Link]
- shell-pop-el [Link]
- string-inflection [Link]
- treemacs [Link]
- undo-tree [Link]
- use-package [Link]
- which-key [Link]
- wttrin [Link]
Key | Function |
---|---|
<f2> | magit-status |
<f5> | magit-list-repositories |
<f6> | org-directory-search-ag |
<f7> | create new empty buffer (org-mode) |
<f8> | ispell-word |
M-<f8> | flyspell-goto-next-error |
<f9> | toggle sroll bar |
<f12> | imenu-list-smart-toggle |
M-<f12> | treemacs |
C-<f12> | ibuffer-sidebar-toggle-sidebar |
s-/ | avy-goto-char |
C-= | copy-line |
C-c <left> | Winner mode - Undo windows changes |
C-c <right> | Winner mode - Redo windows changes |
C-m | YAML mode - New line and indent |
C-c p | projectile keymap |
M-+ | drestivo-insert-date |
C-x t | shell-pop-universal-key |
C-c j | drestivo-org-show-current-heading-tidily |
M-o | other-window |
M-up | move-text-up |
M-down | move-text-down |
Key | Function |
---|---|
C-x r b | helm-filtered-bookmarks |
C-x C-r | helm-recentf |
M-s | helm-do-ag-this-file |
C-u M-s | helm-do-ag-buffers |
C-c C-; | helm-eshell-prompts |
C-c C-l | helm-eshell-history |
Key | Function |
---|---|
C-S-c C-S-c | mc/edit-lines |
C-> | mc/mark-next-like-this |
C-< | mc/mark-previous-like-this |
M-C-> | mc/mark-next-like-this-symbol |
M-C-< | mc/mark-previous-like-this-symbol |
C-c C-< | mc/mark-all-like-this |
C-c C-> | mc/mark-all-like-this-symbol |
C-c C-n | mc/insert-numbers |
C-c C-r | mc/reverse-regions |
C-c C-s | mc/sort-regions |
C-S-<mouse-1> | mc/add-cursor-on-click |
C-' | mc-hide-unmatched-lines-mode |
Key | Function |
---|---|
C-c e | org-encrypt-entry |
C-c d | org-decrypt-entry |
C-c l | org-store-link |
C-c a | org-agenda |
C-c c | org-capture |
C-c b | org-iswitch |
C-c j | drestivo-org-show-current-heading-tidily |
drestivo-org-directory-search-ag | |
M- | helm-do-ag |
Key | Function |
---|---|
C-M-f | sp-forward-sexp |
C-M-b | sp-backward-sexp |
C-M-u | sp-up-sexp |
C-M-d | sp-down-sexp |
C-M-a | sp-beginning-of-sexp |
C-M-e | sp-end-of-sexp |
C-M-n | sp-next-sexp |
C-M-p | sp-previous-sexp |
C-M-t | sp-transpose-sexp |
C-M-k | sp-kill-sexp |
C-M-w | sp-copy-sexp |
M-<backspace> | sp-unwrap-sexp |
C-s-<right> | sp-forward-slurp-sexp |
C-s-<left> | sp-forward-barf-sexp |
C-M-<left> | sp-backward-slurp-sexp |
C-M-<right> | sp-backward-barf-sexp |
M-( | sp-wrap-round |
M-[ | sp-wrap-square |
M-{ | sp-wrap-curly |
Feel free to drop me an email in case of questions.