Commit Graph

515 Commits

Author SHA1 Message Date
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
fd5b92e3f5 completion/ivy: remap evil-show-marks -> counsel-mark-ring 2019-10-27 14:03:45 -04:00
68f2ac4d8c completion/ivy: ivy-height = 17
20 was too tall!
2019-10-26 04:06:10 -04:00
a4aae9c3a7 completion/ivy: ivy-height = 20
Ivy is a bit cramped otherwise
2019-10-26 03:58:08 -04:00
cf21cdc68c completion/ivy: minor refactor 2019-10-25 20:25:21 -04:00
851094cdd3 Restore ./ & ../ entries in ivy
There are a number of commands where these options are useful.
2019-10-24 04:42:21 -04:00
f79d191701 completion/ivy: use region is active & fix regex quoting
Fixes #1930
2019-10-22 12:36:43 -04:00
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
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
e0469e14c0 Minor refactors & reformatting across the board 2019-10-20 19:57:27 -04:00
cbc7c2aaf0 completion/ivy: remove -S switch
If ivy-case-fold-search == 'auto, counsel-{ag,rg} does this for us.
2019-10-20 10:58:53 -04:00
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
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
19ec099e25 completion/ivy: swiper-action-recenter = t 2019-10-18 21:10:56 -04:00
ace4c4c782 completion/ivy: minor refactor 2019-10-18 21:10:55 -04:00
f2233b73cb Rename ivy-dispatching-done{-hydra,}
Based on this Ivy commit:

1ad457d8e7 (diff-59c8f3240a0249f3809ead0286a450b7)
2019-10-18 12:51:50 -04:00
323e0adf45 Minor refactors & reformatting across the board 2019-10-17 01:47:58 -04:00
d5d85d1b03 completion/ivy: make counsel-compile projectile-aware 2019-10-17 01:45:30 -04:00
1826421cba completion/ivy: persist counsel-compile-history 2019-10-17 01:43:37 -04:00
d5e6c8813e completion/ivy: use counsel-compile
Wrote wrappers to replace compile and projectile-compile-project.
2019-10-17 01:41:37 -04:00
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
f779c3b781 completion/company: remove unneeded transient hook 2019-10-14 02:54:44 -04:00
5999fee7c3 completion/company: load company earlier
Potentially addresses #1696, #1687, #1686, #993
2019-10-12 19:31:59 -04:00
9c548a60e3 completion/ivy: load counsel earlier 2019-10-12 19:31:05 -04:00
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
d74ed618ce moved company-files-regexps change from org/config to company/conif 2019-10-10 20:34:52 +02:00
9a79f3815f moved comapny files regexp for org mode to org/config.el 2019-10-10 10:04:30 +02:00
596e7c97a9 added company-files support for file links in org mode 2019-10-09 23:21:33 +02:00
de6afec944 Merge pull request #1851 from alexandergraul/add-openSUSE-prerequisites
Add openSUSE prerequisite instructions
2019-10-03 12:09:37 -04:00
b7a98cc788 Add openSUSE prerequisite instructions
These instructions were tested on openSUSE Tumbleweed and openSUSE Leap
15.1. There are some modules left that are not documented yet, but this
already improves the sitution for common openSUSE users.
2019-10-03 16:01:35 +02:00
ad1a7fd1ad completion/helm: conditionally install helm-org 2019-09-29 02:00:47 -04:00
3a026c0a8c completion/helm: fix void-variable helm-completing-read-handlers-alist error 2019-09-29 01:58:22 -04:00
a8e7c4fd45 Move helm-org config to completion/helm 2019-09-28 23:08:44 -04:00
0690bac82f completion/company: update plugin list in readme 2019-09-26 14:26:48 -04:00
30f15189e4 Merge pull request #1810 from rgrinberg/use-mdfind-counsel-locate-mac
Use mdfind for counsel-locate on a Mac
2019-09-22 14:29:13 -04:00
19ef103392 completion/helm: add mdfind support to helm-locate 2019-09-22 13:33:26 -04:00
f4d17707e7 config/default: bind SPC f l to locate
This will be remapped to counsel-locate or helm-locate if the ivy/helm
modules are enabled.
2019-09-22 12:09:51 -04:00
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
e10cd8cf2e Insult byte-compiler's mom
Yeah, that shut him up.
2019-09-20 23:10:53 -04:00
20eb5ce4f6 Bind SPC / f to locate/counsel-locate 2019-09-15 16:21:10 -04:00
6bd2eaf2c8 completion/helm: remove obsolete advice
Doesn't appear to be needed anymore.
2019-08-22 18:56:25 -04:00
6a67572e1d Fix 'no such live buffer' errors from helm +childframe 2019-08-22 18:54:30 -04:00
2cd1c43217 Suppress errors in +ivy--set-jump-point-maybe-h 2019-08-17 16:04:26 -04:00
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
40eb9cf17e Replace helm-projectile-* commands with +helm/* #1589 2019-07-29 21:23:51 +02:00
19ecf8e46a Correct last inline hook defuns
See a3e262c7 for rationale
2019-07-28 16:10:53 +02:00
7c523f2c15 Uniquify completion candidates of whole lines
If the same line is present more than once in the buffer, it will be
offered more than once as a candidate. This commit deletes duplicate
lines from the completion list.

Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2019-07-28 01:19:45 +07:00
a3e262c7ac 💥 Refactor add-hook! macro & change arg order
This update may potentially break your usage of add-hook! if you pass
the :local or :append properties to it. This is how they used to work:

  (add-hook! :append 'some-mode-hook #'do-something)

Thsoe properties must now follow the hooks, e.g.

  (add-hook! 'some-mode-hook :append #'do-something)

Other changes:
- Various add-hook calls have been renamed to add-hook! because I
  incorrectly assumed `defun` always returned its definition's symbol,
  when in fact, its return value is "undefined" (so sayeth the
  documentation). This should fix #1597.
- This update adds the ability to add multiple functions to hooks
  without a list:

    (add-hook! 'some-mode-hook
               #'do-something
               #'do-something-else)

- The indentation logic has been changed so that consecutive function
  symbols at indented at the same level as the first argument, but forms
  are indent like a defun.

    (add-hook! 'some-mode-hook
               #'do-something
               #'do-something-else)

    (add-hook! 'some-mode-hook
      (message "Hello"))
2019-07-26 20:17:29 +02:00
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
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