Commit graph

264 commits

Author SHA1 Message Date
Henrik Lissner
cdfef48b64
completion/ivy: fix +fuzzy 2019-12-16 17:49:11 -05:00
Henrik Lissner
eaa5621b36
Update comments 2019-12-15 23:51:59 -05:00
Henrik Lissner
7095bdb7ce
completion/ivy: remove redundant counsel-find-file actions
Many of these are already upstream, but some of them are on different
keys (e.g. j instead of f for other-window).

See https://github.com/abo-abo/swiper/blob/master/counsel.el#L1864-L1875
2019-12-15 18:49:42 -05:00
Henrik Lissner
87f6dab424
completion/ivy: remove unused var; update config
...to reflect our dropping ag/grep support.
2019-12-13 23:00:01 -05:00
Henrik Lissner
a24b750c6c
completion/ivy: fix ivy-re-builders-alist delegates 2019-12-13 22:49:26 -05:00
Henrik Lissner
996188250b
Minor refactors & comment revision 2019-12-06 17:16:34 -05:00
Henrik Lissner
c13b8df5df
Minor refactors & reformatting 2019-12-05 14:56:16 -05:00
Henrik Lissner
d41e4983ec
Bind '<help> t' to load-theme
And remap load-theme to counsel-load-theme.

This replaces the keybind for help-with-tutorial, but `load-theme` is
useful enough to warrant a keybind. `help-with-tutorial` is not.
2019-11-21 14:46:00 -05:00
Alois Janíček
c2d66ccdcf
ivy-posframe: ignore counsel-rg 2019-11-19 13:24:54 +01:00
Henrik Lissner
d2092ae44e
completion/ivy: load counsel earlier
Fixes an issue where counsel was being loaded later than ivy-prescient,
which requires that it be loaded earlier.
2019-11-17 17:56:25 -05:00
Henrik Lissner
b7044b5f32
Fix #2064: partially revert bd4755123
A change unintentionally snuck into bd4755123.
2019-11-15 23:56:08 -05:00
Henrik Lissner
bd4755123f
Replace */tasks commands w/ magit-todos-list
If we want ivy/helm interfaces to it, we should use magit-todos as a
backend.
2019-11-15 22:17:31 -05:00
Henrik Lissner
99cd52e70f
💥 Drop Emacs 25.x support
Emacs 26.1 is Doom's new minimum supported version

Closes #2026
2019-11-08 16:02:06 -05:00
Henrik Lissner
ecace01a36
completion/ivy: remove org-capture remapping
counsel-org-capture isn't very useful when there are so few options.
2019-10-31 23:57:18 -04:00
Henrik Lissner
fd5b92e3f5
completion/ivy: remap evil-show-marks -> counsel-mark-ring 2019-10-27 14:03:45 -04:00
Henrik Lissner
68f2ac4d8c
completion/ivy: ivy-height = 17
20 was too tall!
2019-10-26 04:06:10 -04:00
Henrik Lissner
a4aae9c3a7
completion/ivy: ivy-height = 20
Ivy is a bit cramped otherwise
2019-10-26 03:58:08 -04:00
Henrik Lissner
cf21cdc68c
completion/ivy: minor refactor 2019-10-25 20:25:21 -04:00
Henrik Lissner
851094cdd3
Restore ./ & ../ entries in ivy
There are a number of commands where these options are useful.
2019-10-24 04:42:21 -04:00
Henrik Lissner
9402a0e09d
Bind 'SPC i u' to 'insert unicode character'
With a counsel remapping. We need a helm one too.
2019-10-20 19:57:28 -04:00
Henrik Lissner
45a17c86ba
Add +ivy/jump-list & bind 'SPC b j' to it
Falls back to evil-show-jumps for non-evil users.
2019-10-20 19:57:27 -04:00
Henrik Lissner
182b8a3ba9
completion/ivy: ivy-extra-directories = nil
Removes the ./ and ../ entries from ivy file completion commands. These
can still be typed in to navigate buffers.
2019-10-20 10:58:53 -04:00
Henrik Lissner
0e9596244d
counsel-find-file-at-point = nil
This is disruptive when you use counsel-find-file to quickly jump to
another file in or near the current directory. There's already gf for
this sort of thing anyway.
2019-10-20 10:58:52 -04:00
Henrik Lissner
19ec099e25
completion/ivy: swiper-action-recenter = t 2019-10-18 21:10:56 -04:00
Henrik Lissner
ace4c4c782
completion/ivy: minor refactor 2019-10-18 21:10:55 -04:00
Alexey Shiklomanov
f2233b73cb Rename ivy-dispatching-done{-hydra,}
Based on this Ivy commit:

1ad457d8e7 (diff-59c8f3240a0249f3809ead0286a450b7)
2019-10-18 12:51:50 -04:00
Henrik Lissner
323e0adf45
Minor refactors & reformatting across the board 2019-10-17 01:47:58 -04:00
Henrik Lissner
d5d85d1b03
completion/ivy: make counsel-compile projectile-aware 2019-10-17 01:45:30 -04:00
Henrik Lissner
1826421cba
completion/ivy: persist counsel-compile-history 2019-10-17 01:43:37 -04:00
Henrik Lissner
d5e6c8813e
completion/ivy: use counsel-compile
Wrote wrappers to replace compile and projectile-compile-project.
2019-10-17 01:41:37 -04:00
Henrik Lissner
46b7945015
completion/ivy: extend +ivy-task-tags
To support the new tag list used in ui/hl-todo. These were derived from
https://github.com/bbatsov/emacs-lisp-style-guide
2019-10-15 22:24:56 -04:00
Henrik Lissner
9c548a60e3
completion/ivy: load counsel earlier 2019-10-12 19:31:05 -04:00
Henrik Lissner
6ba7c97501
Remove the_platinum_searcher support
I'm reducing the scope of our project search so we can eventually focus
on ripgrep. By specializing I can extend Doom's features for project
searching.
2019-10-10 22:02:18 -04:00
Rudi Grinberg
5c76bfce75 Use mdfind for counsel-locate on a Mac
This is the more sensible option as locate isn't configured by default
and spotlight is turned on by default.

Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2019-09-23 00:35:57 +09:00
Henrik Lissner
e10cd8cf2e
Insult byte-compiler's mom
Yeah, that shut him up.
2019-09-20 23:10:53 -04:00
Henrik Lissner
20eb5ce4f6
Bind SPC / f to locate/counsel-locate 2019-09-15 16:21:10 -04:00
Henrik Lissner
2cd1c43217
Suppress errors in +ivy--set-jump-point-maybe-h 2019-08-17 16:04:26 -04:00
Henrik Lissner
1dcbdc8dfb
completion/ivy: optimize counsel-file-jump
Instead of `find`, force it to use fd or ripgrep, if available.
2019-08-06 19:43:54 -04:00
Henrik Lissner
19ecf8e46a
Correct last inline hook defuns
See a3e262c7 for rationale
2019-07-28 16:10:53 +02:00
Henrik Lissner
82ae3a73f3
def-advice!->defadvice! & conform to new advice conventions
This commit does two things:

- Renames def-advice! to defadvice!, in the spirit of naming convenience
  macros after the function/macro they enhance or replace.
- Correct the names of advice functions to indicate visibility and
  intent. A public advice function like doom-set-jump-a is meant to be
  used elsewhere. A private one like +dired--cleanup-header-line-a
  shouldn't -- it likely won't work anywhere but the function(s) it was
  made to advise.
2019-07-23 17:24:56 +02:00
Henrik Lissner
76cacb5bfe
💥 Rename def-package! -> use-package!
Calling this pivotal macro "def-package!" has frequently been a source
of confusion. It is a thin wrapper around use-package, and it should be
obvious that it is so. For this reason, and to match the naming
convention used with other convenience macros/wrappers, it is now
use-package!.

Also changes def-package-hook! -> use-package-hook!

The old macros are now marked obsolete and will be removed when straight
integration is merged.
2019-07-23 12:50:45 +02:00
Henrik Lissner
060ede0e2e
General, minor reformatting across the board
And an offering of blood to our great lord Byte Compiler-sama.
2019-07-22 02:37:45 +02:00
Henrik Lissner
149b2617b0
💥 revise hook/var fns naming convention (2/2)
This is second of three big naming convention changes. In this commit,
we change the naming conventions for hook functions and variable
functions:

1. Replace the bar | to indicate a hook function with a -h suffix, e.g.

     doom|init-ui -> doom-init-ui-h
     doom|run-local-var-hooks -> doom-run-local-var-hooks-h

2. And add a -fn suffix for functions meant to be set on variables,
   e.g.

     (setq magit-display-buffer-function #'+magit-display-buffer-fn)

See ccf327f8 for the reasoning behind these changes.
2019-07-22 02:30:38 +02:00
Henrik Lissner
51d3b1b424
💥 revise advice naming convention (1/2)
This is first of three big naming convention updates that have been a
long time coming. With 2.1 on the horizon, all the breaking updates will
batched together in preparation for the long haul.

In this commit, we do away with the asterix to communicate that a
function is an advice function, and we replace it with the '-a' suffix.
e.g.

  doom*shut-up -> doom-shut-up-a
  doom*recenter -> doom-recenter-a
  +evil*static-reindent -> +evil--static-reindent-a

The rationale behind this change is:

1. Elisp's own formatting/indenting tools would occasionally struggle
   with | and * (particularly pp and cl-prettyprint). They have no
   problem with / and :, fortunately.
2. External syntax highlighters (like pygmentize, discord markdown or
   github markdown) struggle with it, sometimes refusing to highlight
   code beyond these symbols.
3. * and | are less expressive than - and -- in communicating the
   intended visibility, versatility and stability of a function.
4. It complicated the regexps we must use to search for them.
5. They were arbitrary and over-complicated to begin with, decided
   on haphazardly way back when Doom was simply "my private config".

Anyhow, like how predicate functions have the -p suffix, we'll adopt the
-a suffix for advice functions, -h for hook functions and -fn for
variable functions.

Other noteable changes:
- Replaces advice-{add,remove}! macro with new def-advice!
  macro. The old pair weren't as useful. The new def-advice! saves on a
  lot of space.
- Removed "stage" assertions to make sure you were using the right
  macros in the right place. Turned out to not be necessary, we'll
  employ better checks later.
2019-07-22 02:27:45 +02:00
Henrik Lissner
fb16afb4f2
ivy-prescient-retain-classic-highlighting = t
Because prescient's highlighting turns any assumptions themes make
about ivy's faces on their head, making them look odd.
2019-07-11 17:23:20 +02:00
Henrik Lissner
a201409fdd
Minor refactors across the board 2019-07-10 21:27:12 +02:00
Henrik Lissner
563629cbd3
Remove unneeded autoloads 2019-07-06 23:22:27 +02:00
Henrik Lissner
9a8faf1df3
completion/ivy: don't ignore order in file search 2019-07-02 13:12:21 +02:00
Henrik Lissner
b5c5b7f10d
Move posframe+persp-mode fix to ui/workspaces 2019-06-26 14:31:06 +02:00
Henrik Lissner
33ae889e39
Enable evil-collection-ivy 2019-06-14 11:05:54 +02:00