Commit graph

5374 commits

Author SHA1 Message Date
Henrik Lissner
2c5c192b6f
Fix conflict on C-c p s #1425
Moved scratch buffer to C-c p x and X. This overrides projectile's term
commands, but users should be using the term, vterm and eshell modules'
commands instead.
2019-05-21 17:24:22 -04:00
Henrik Lissner
0e2cbdf8f5
ui/nav-flash: trigger on switch-window 2019-05-21 03:42:12 -04:00
Henrik Lissner
912cc4b522
input/japanese: lazy-load pangu-spacing
Also fixes typo in :general use
2019-05-21 03:41:43 -04:00
Henrik Lissner
3eb5e8d40e
input/japanese: fix typo & use :general 2019-05-21 03:39:19 -04:00
Henrik Lissner
0041723a80
Make +nav-flash/blink-cursor unconditional
Since it is meant for interactive use
2019-05-21 01:24:55 -04:00
Henrik Lissner
2214c3175e
Minor tweaks across the board 2019-05-21 00:34:32 -04:00
Henrik Lissner
2f569eda51
Silence malformed function warnings from ivy-hydra 2019-05-21 00:30:42 -04:00
Henrik Lissner
fe36bbca1f
Standardize C-c C-e for ivy wgrep
Removes backtab in favor of standardizing C-c C-e. Already used by helm,
wgrep and dired.
2019-05-21 00:30:42 -04:00
Henrik Lissner
3e15b71568
lang/emacs-lisp: optimize var/face highlighting
A slight performance improvement in files with a lot of comments and
strings, by skipping ahead a line if in a comment and to the next double
quote if in a string. Otherwise, this function would visit every symbol
in between, and syntax-ppss calls are relatively expensive here.
2019-05-20 21:09:12 -04:00
Henrik Lissner
08bfd5879a
Enable read-only-mode in package files
These files shouldn't be modified directly.
2019-05-20 21:09:12 -04:00
Henrik Lissner
ed69d580fb
emacs/dired: fix ranger oddities
Added two hacks to fix two obnoxious issues Ranger has, having to do
with it failing to clean up after itself. In particular:

1. A left over mouse-1 bind that traps focus in a particular
   window (easy to get around with keyboard-based window switch
   commands, but this renders the mouse useless),

2. And the lingering ranger header bar (i.e. it doesn't clean up
   header-line-format).

This commit also ensures Deer overrides dired if +ranger is enabled.
2019-05-20 21:09:12 -04:00
Henrik Lissner
e76765e0b8
emacs/dired: add dired-rsync
And bind it to C-c C-r
2019-05-20 21:09:12 -04:00
Henrik Lissner
c4af1a807c
emacs/dired: enable diredfl & dired-k in ranger/deer 2019-05-20 21:09:12 -04:00
Henrik Lissner
57697efb62
emacs/dired: add diredfl & refactor
- Adds C-c C-e for invoking wdired
- Adds diredfl for more colors in dired (and disables dired-k's coloring
  based on mtime, which was confusing)
2019-05-20 21:09:12 -04:00
Henrik Lissner
9561331d05
Fix +calendar/open-calendar
It was using a doom-themes function, which isn't guaranteed to exist,
e.g. if the user isn't using a doom-themes theme.
2019-05-20 21:09:12 -04:00
Henrik Lissner
8f9056906d
Rethink scratch buffer keybinds & commands
For non-evil users:

<leader> x    doom/open-scratch-buffer
<leader> X    doom/switch-to-scratch-buffer
<leader> p s  doom/open-project-scratch-buffer
<leader> p S  doom/switch-to-project-scratch-buffer

For evil users:

<leader> x    doom/open-scratch-buffer
<leader> b s  doom/open-scratch-buffer
<leader> b S  doom/switch-to-scratch-buffer
<leader> p s  doom/open-project-scratch-buffer
<leader> p S  doom/switch-to-project-scratch-buffer
2019-05-20 21:09:12 -04:00
Henrik Lissner
9f63d94b13
Add doom/help-package-homepage command (SPC h d P) 2019-05-20 21:09:11 -04:00
Henrik Lissner
243a3a84a8
Add doom/help-news-search command (SPC h d N) 2019-05-20 21:09:11 -04:00
Henrik Lissner
9d5e8fdda4
completion/helm: use ;;;###package cookies 2019-05-20 21:09:11 -04:00
Henrik Lissner
482c87308f
config/default: correct project keybinds
- SPC p > and SPC p ? were the wrong way around
- Add SPC p e to edit project .dir-locals.el
2019-05-20 21:09:10 -04:00
Henrik Lissner
916a3cb36a
config/default: update & reformat emacs keybinds 2019-05-20 21:09:10 -04:00
Henrik Lissner
a7069b93f2
Remove vestigial imenu-anywhere remappings 2019-05-20 21:09:10 -04:00
Henrik Lissner
4c9a3dd191
lang/markdown: remove +pandoc
The new default for markdown-command will try pandoc, if it is
available. This makes pandoc-mode redundant. The mode also doesn't quite
belong to the markdown module.
2019-05-20 21:09:10 -04:00
Henrik Lissner
a6ebd95aee
lang/markdown: fix doctor's executable detection 2019-05-20 21:09:10 -04:00
Henrik Lissner
57bd7a385e
Fix typo in +default/org-notes-headlines 2019-05-20 21:09:10 -04:00
Henrik Lissner
41de07177b
Update keybinds for :term modules 2019-05-19 02:30:43 -04:00
Henrik Lissner
d3cb394ce4
Refactor +ivy/tasks
Just realized ivy passes the candidate in its original data structure to
its handlers.
2019-05-19 02:18:26 -04:00
Henrik Lissner
39d4fa2256
Improve better-jumper integration into ivy
And remove unnecessary set-jump on imenu-after-jump-hook (it should
happen before the jump, not after).
2019-05-19 02:18:26 -04:00
Henrik Lissner
754dd75624
Update highlight-indent-guides faces on focus-in
The faces may go out of sync if you spawn a tty frame via the server.
Updating it when you switch frames is a workaround for this.
2019-05-19 02:18:26 -04:00
Henrik Lissner
10cef7a887
tools/flyspell: add +prog flag #1418
Enables flyspell-prog-mode on prog-mode-hook.
2019-05-19 02:18:25 -04:00
Henrik Lissner
c3cb7c5000
:tools password-store -> :tools pass
A simpler name and matches the prefix of its module.
2019-05-19 02:18:25 -04:00
Henrik Lissner
0674e4b4b0
Remove :emacs imenu module
Some of it was moved into core as reasonable defaults, but the rest of
it doesn't warrant a whole module dedicated to it.
2019-05-19 02:18:00 -04:00
Henrik Lissner
928ec16242
ui/workspaces: remove unused function 2019-05-19 02:17:59 -04:00
Henrik Lissner
8c65a63b1c
Move eshell, term & vterm modules to :term 2019-05-19 02:17:59 -04:00
Henrik Lissner
42ba2a22b8
Prevent ~/.emacs.d/transient from being created 2019-05-19 02:17:59 -04:00
Henrik Lissner
dce3d0ddc6
Fix evil-alternate-buffer + persp-mode
Fixes an issue where evil-switch-to-windows-last-buffer would switch to
buffers outside the current workspace.
2019-05-19 02:17:59 -04:00
Henrik Lissner
892f0164af
Add :h[elp] ex command 2019-05-19 02:17:58 -04:00
Henrik Lissner
dba3ae5e4d
Prevent nav-flash from firing too often
And trigger on better-jumper-post-jump-hook instead, so that non-evil
users can benefit from nav-flash in this case too.
2019-05-19 02:17:58 -04:00
Henrik Lissner
30319d1c3e
lang/markdown: auto-resolve build & open programs
Markdown-mode will now auto-detect a markdown compiler when you use
markdown-preview (SPC m b). It will try marked, pandoc and markdown, in
that order.

As for markdown-open, it will now use "open" on MacOS and "xdg-open" on
Linux, by default.
2019-05-18 00:53:39 -04:00
Henrik Lissner
2e6d8be6fc
Rethink SPC n keybinds and add new ones
Adds the following keybinds:

SPC n .    Browses org-directory
SPC n /    Text search in org-directory
SPC n *    Text search in org-directory with symbol at point
SPC n h    Jump to org headline in org-agenda-files
2019-05-17 23:57:24 -04:00
Henrik Lissner
f8b359516f
lang/python: set docsets 2019-05-17 21:02:25 -04:00
Henrik Lissner
f7b75a7d68
editor/evil: use evil-set-cursor-color
set-cursor-color causes an expensive redraw. Plugins like treemacs may
silently change window focus, triggering these calls and causing
freezing. We use evil-set-cursor-color instead, which avoids
set-cursor-color unless the cursor's color has changed.
2019-05-17 21:02:24 -04:00
Henrik Lissner
571e7bd527
Fix +lookup/in-docsets & docsets lookup backend
They were throwing 'cannot find docset' errors.

- Adds new +lookup/in-all-docsets command.
- If a prefix arg is passed to +lookup/in-docsets, it will search all
  docsets in dash-docs-common-docsets.
2019-05-17 21:02:24 -04:00
Henrik Lissner
507fb50ff2
Warn us if evil-collection module loads too early 2019-05-17 20:23:52 -04:00
Henrik Lissner
31ed6fdf2b
tools/eval: fix eval-and-replace not first clearing selection 2019-05-17 16:01:46 -04:00
Henrik Lissner
ec240d0bfa
tools/eval: fix window-live-p error on eval-and-replace
Caused because the quickrun window adjustment hooks assume quickrun will
always spawn a results buffer, but in the case of eval-and-replace, it
doesn't.
2019-05-17 15:59:49 -04:00
Henrik Lissner
87899124ab
Disable lsp-ui-doc by default
In the interest of performance and simplicity. lsp-ui-doc is redundant
with +lookup/documentation and eldoc (which are less imposing than
lsp-ui-doc's childframe).

Also sets lsp-groovy-server-install-dir.
2019-05-17 02:05:33 -04:00
Henrik Lissner
3240238a18
tools/vterm: improve UI/UX
- Don't prompt about processes when killing buffer
- Hide modeline in vterm buffers (doesn't do anything useful and would
  be consistent with settings for eshell and term modules).
- Refactor +vterm/open & +vterm/open-popup
- Add Emacs window redraw hack to force vterm to redraw, fixing
  artefacting in some edge cases.
- Fix ansi-color-names-vector when solaire-mode is present, otherwise
  you get a mismatched background in vterm (and other terms).
2019-05-17 01:58:42 -04:00
Henrik Lissner
20720cda61
Remove visual-fill-column package from Doom core
It is not essential enough to keep in Doom core. I'm working on a new
module (or a rewrite for app/write) to replace it.
2019-05-17 01:58:27 -04:00
Henrik Lissner
67b6c44939
Enable show-trailing-whitespace globally
The variable is buffer-local and must be set with setq-default instead.

Also adds doom|{enable,disable}-show-trailing-whitespace hooks.
2019-05-17 01:58:08 -04:00