General cleanup + refactor
This commit is contained in:
parent
35a287c58b
commit
117e55f0c2
4 changed files with 23 additions and 23 deletions
35
README.md
35
README.md
|
@ -8,7 +8,7 @@
|
||||||
<img src="https://raw.githubusercontent.com/hlissner/.emacs.d/screenshots/cacochan.png" align="right" />
|
<img src="https://raw.githubusercontent.com/hlissner/.emacs.d/screenshots/cacochan.png" align="right" />
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
This is an Emacs configuration for a stubborn, melodramatic and shell-dwelling
|
This is an Emacs configuration for a stubborn, shell-dwelling and melodramatic
|
||||||
vimmer disappointed with the text-editor status quo.
|
vimmer disappointed with the text-editor status quo.
|
||||||
|
|
||||||
Doom tries to: look and act like modern editors (whatever that means to me on
|
Doom tries to: look and act like modern editors (whatever that means to me on
|
||||||
|
@ -16,7 +16,7 @@ any given day), espouse vim's modal philosophy as best it can and strive to
|
||||||
surpass vim in any way possible. It fits my needs as a software developer, indie
|
surpass vim in any way possible. It fits my needs as a software developer, indie
|
||||||
game developer, scientist and doom enthusiast.
|
game developer, scientist and doom enthusiast.
|
||||||
|
|
||||||
It was tailored for **Emacs 25.1+** on **MacOS 10.11+** and **Arch Linux 4.7+**.
|
It was written for **Emacs 25.1+** on **MacOS 10.11+** and **Arch Linux 4.7+**.
|
||||||
I use [vim] everywhere else.
|
I use [vim] everywhere else.
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
@ -27,7 +27,7 @@ cd ~/.emacs.d
|
||||||
cp init.example.el init.el # maybe edit init.el
|
cp init.example.el init.el # maybe edit init.el
|
||||||
make install
|
make install
|
||||||
|
|
||||||
# If you have problems, run this to check for common issues with your setup
|
# Have problems? Run this to check for common issues with your setup
|
||||||
make doctor
|
make doctor
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@ Emacs feel a bit snappier in general.
|
||||||
```bash
|
```bash
|
||||||
make compile # may take a while
|
make compile # may take a while
|
||||||
# or
|
# or
|
||||||
make compile-lite # lighter alternative to compile; only compiles core files
|
make compile-lite # faster alternative; only compiles core files
|
||||||
|
|
||||||
# If you byte-compile, changes to the config won't take effect until you
|
# If you byte-compile, changes to the config won't take effect until you
|
||||||
# recompile or delete the byte-compiled files with:
|
# recompile or delete the byte-compiled files with:
|
||||||
|
@ -67,7 +67,7 @@ DEBUG=1 make install
|
||||||
YES=1 make update
|
YES=1 make update
|
||||||
```
|
```
|
||||||
|
|
||||||
These can also be invoked from within emacs:
|
These commands are also available from within Emacs:
|
||||||
|
|
||||||
+ `doom/packages-install`
|
+ `doom/packages-install`
|
||||||
+ `doom/packages-update`
|
+ `doom/packages-update`
|
||||||
|
@ -90,21 +90,21 @@ So you want to grok this madness. Here are a few suggestions:
|
||||||
|
|
||||||
### Highlights
|
### Highlights
|
||||||
|
|
||||||
* A [popup window management system](core/core-popups.el) using **[shackle]** to
|
* A [popup management system](core/core-popups.el) using **[shackle]** to
|
||||||
minimize mental context switching while dealing with temporary or disposable
|
minimize mental context switching while dealing with temporary or disposable
|
||||||
buffers.
|
buffers.
|
||||||
* Per-project code-style settings with **[editorconfig]**. Let someone else
|
* Per-project code-style settings with **[editorconfig]**. Let someone else
|
||||||
argue about tabs versus spaces (spaces > tabs, btw).
|
argue about tabs versus spaces (spaces, of course).
|
||||||
* Workspaces & session persistence with **[persp-mode]**. This provides tab
|
* Workspaces & session persistence with **[persp-mode]**. Provides tab emulation
|
||||||
emulation that vaguely resembles vim tabs.
|
that vaguely resembles vim's tabs.
|
||||||
* Project & workspace-aware buffer navigation and functions.
|
* Project & workspace-restricted buffer navigation and functions.
|
||||||
* A vim-centric environment with **[evil-mode]**
|
* A vim-centric environment with **[evil-mode]**
|
||||||
* 2-character motions (ala vim-seek/vim-sneak) with **[evil-snipe]**
|
* 2-character motions (ala vim-seek/vim-sneak) with **[evil-snipe]**
|
||||||
* Sublime Text-esque [multiple cursors][sc-multiedit] with
|
* Sublime Text-esque [multiple cursors][sc-multiedit] with
|
||||||
**[evil-mc]** and **[evil-multiedit]**
|
**[evil-mc]** and **[evil-multiedit]**
|
||||||
* Repeat (most) motions with <kbd>SPC</kbd> and
|
|
||||||
<kbd>shift</kbd>+<kbd>SPC</kbd> (backwards)
|
|
||||||
* <kbd>C-x</kbd> omnicompletion in insert mode
|
* <kbd>C-x</kbd> omnicompletion in insert mode
|
||||||
|
* A better `:global` with buffer highlighting
|
||||||
|
* A slew of [custom ex commands](modules/private/hlissner/+commands.el)
|
||||||
* Fast search utilities:
|
* Fast search utilities:
|
||||||
* Project and buffer navigation with **[ivy]**
|
* Project and buffer navigation with **[ivy]**
|
||||||
* File browser sidebar with **[neotree]**
|
* File browser sidebar with **[neotree]**
|
||||||
|
@ -117,10 +117,10 @@ So you want to grok this madness. Here are a few suggestions:
|
||||||
* [Minimalistic diffs in the fringe][sc-diffs] with **[git-gutter-fringe]**.
|
* [Minimalistic diffs in the fringe][sc-diffs] with **[git-gutter-fringe]**.
|
||||||
* A do-what-I-mean jump-to-definition implementation that tries its darnest to
|
* A do-what-I-mean jump-to-definition implementation that tries its darnest to
|
||||||
find the definition of what you're looking at. It tries major-mode commands,
|
find the definition of what you're looking at. It tries major-mode commands,
|
||||||
xref (experimental Emacs library) **[dumb-jump]**, ctags (WIP), then
|
xref (experimental Emacs library), **[dumb-jump]**, ctags (WIP), then
|
||||||
**[ripgrep][rg]** or **[the_silver_server][ag]** (for multiline searches).
|
**[ripgrep][rg]** or **[the_silver_searcher][ag]**.
|
||||||
* Snippets and file-templates with **[yasnippet]**.
|
* Snippets and file-templates with **[yasnippet]** & **[auto-yasnippet]**.
|
||||||
* A smarter, perdier, Atom-inspired mode-line that includes:
|
* A smarter, perdier, Atom-inspired mode-line that adds:
|
||||||
* evil-search/iedit/evil-substitute mode-line integration
|
* evil-search/iedit/evil-substitute mode-line integration
|
||||||
* Macro-recording indicator
|
* Macro-recording indicator
|
||||||
* Python/ruby version in mode-line (for rbenv/pyenv)
|
* Python/ruby version in mode-line (for rbenv/pyenv)
|
||||||
|
@ -148,10 +148,11 @@ from it.
|
||||||
|
|
||||||
I welcome contributions of any kind: documentation, bug fixes/reports, extra
|
I welcome contributions of any kind: documentation, bug fixes/reports, extra
|
||||||
modules, even elisp tips. Really,
|
modules, even elisp tips. Really,
|
||||||
[don't hesitate to tell me my Elisp-fu sucks][new-issue]!
|
[don't hesitate to tell me my Elisp-fu sucks][new-issue]! I'm eager to learn.
|
||||||
|
|
||||||
|
|
||||||
[ag]: https://github.com/ggreer/the_silver_searcher
|
[ag]: https://github.com/ggreer/the_silver_searcher
|
||||||
|
[auto-yasnippet]: https://melpa.org/#/auto-yasnippet
|
||||||
[company-mode]: https://melpa.org/#/company
|
[company-mode]: https://melpa.org/#/company
|
||||||
[doom-theme]: https://github.com/hlissner/emacs-doom-theme
|
[doom-theme]: https://github.com/hlissner/emacs-doom-theme
|
||||||
[dumb-jump]: https://melpa.org/#/dumb-jump
|
[dumb-jump]: https://melpa.org/#/dumb-jump
|
||||||
|
|
|
@ -35,8 +35,8 @@ session)."
|
||||||
;; disable magic slash on non-match
|
;; disable magic slash on non-match
|
||||||
ivy-magic-slash-non-match-action nil)
|
ivy-magic-slash-non-match-action nil)
|
||||||
|
|
||||||
(after! magit (setq magit-completing-read-function #'ivy-completing-read))
|
(after! magit (setq magit-completing-read-function #'ivy-completing-read))
|
||||||
(after! yasnippet (push #'+ivy-yas-prompt yas-prompt-functions))
|
(after! yasnippet (push #'+ivy-yas-prompt yas-prompt-functions))
|
||||||
|
|
||||||
(ivy-mode +1)
|
(ivy-mode +1)
|
||||||
|
|
||||||
|
@ -75,7 +75,6 @@ session)."
|
||||||
:after ivy
|
:after ivy
|
||||||
:config
|
:config
|
||||||
(require 'counsel-projectile)
|
(require 'counsel-projectile)
|
||||||
|
|
||||||
(setq counsel-find-file-ignore-regexp "\\(?:^[#.]\\)\\|\\(?:[#~]$\\)\\|\\(?:^Icon?\\)")
|
(setq counsel-find-file-ignore-regexp "\\(?:^[#.]\\)\\|\\(?:[#~]$\\)\\|\\(?:^Icon?\\)")
|
||||||
|
|
||||||
;; Configure `counsel-rg', `counsel-ag' & `counsel-pt'
|
;; Configure `counsel-rg', `counsel-ag' & `counsel-pt'
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
;;; lang/sh/config.el
|
;;; lang/sh/config.el
|
||||||
|
|
||||||
(def-package! sh-script ; built-in
|
(def-package! sh-script ; built-in
|
||||||
:mode (("\\.zsh$" . sh-mode)
|
:mode ("\\.zsh$" . sh-mode)
|
||||||
("/bspwmrc$" . sh-mode))
|
:mode ("/bspwmrc$" . sh-mode)
|
||||||
:init
|
:init
|
||||||
(add-hook! sh-mode #'(flycheck-mode highlight-numbers-mode +sh|extra-fontify))
|
(add-hook! sh-mode #'(flycheck-mode highlight-numbers-mode +sh|extra-fontify))
|
||||||
:config
|
:config
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
"The font currently in use.")
|
"The font currently in use.")
|
||||||
|
|
||||||
(defvar +doom-variable-pitch-font
|
(defvar +doom-variable-pitch-font
|
||||||
(font-spec :family "Fira Sans" :size 13)
|
(font-spec :family "Fira Sans" :size 12)
|
||||||
"The font currently in use.")
|
"The font currently in use.")
|
||||||
|
|
||||||
(defvar +doom-unicode-font
|
(defvar +doom-unicode-font
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue