Commit Graph

543 Commits

Author SHA1 Message Date
Justin Burkett 41b2c42986 Ediff: Merge from evil-ediff.el
Adds evil-collection-ediff.el

Ref #129
2018-06-11 08:48:16 +02:00
Pierre Neidhardt 2b603d365c Make it explicit that minibuffer-related packages (e.g. Helm) need the option 2018-06-11 08:18:54 +02:00
Fredrik Bergroth c6e052e443 Use quoted maps in ec-minibuffer-setup 2018-06-09 07:25:45 -07:00
Fredrik Bergroth 044ce128c1 Support anaconda-mode xref navigation
Latest anaconda has replaced view mode by an xref implementation, anaconda
stable still uses `anaconda-view-mode-map'.

See 0a9f518291
2018-06-09 07:25:45 -07:00
James Nguyen c5a92f206e Helm: Remove * in evil-collection-define-key 2018-06-08 10:32:22 -07:00
James Nguyen b587061fc3 Fix some byte compiler warnings 2018-06-08 10:32:13 -07:00
James Nguyen 04268dcadc Remove .el in declare-function 2018-06-08 10:32:02 -07:00
James Nguyen d44ced31bc Add some declare-functions 2018-06-08 10:23:27 -07:00
James Nguyen b6dd37aaa0 Daemons: Don't sharp quote as it makes byte compiler unhappy 2018-06-08 10:20:38 -07:00
James Nguyen a9a28769ec Fix some byte compiler warnings 2018-06-08 10:19:45 -07:00
James Nguyen 36f56362cc Add declare-functions for evil-collection-define-key
Adding for byte compiling.

TODO: Should look into doing an import instead since we shouldn't need
to declare a function that our library should know about.

I think there was some circular dependency around evil-collection-*
requiring evil-collection.el so I went with the quick and dirty
approach of doing a declare-function. If someone has a better idea,
feel free to change this!
2018-06-08 10:18:17 -07:00
Justin Burkett 8c2c1e96f6 Improve evil-collection-describe-all-bindings
Add state information. To do this, change the format of
evil-collection--bindings-record so that bindings for each map are stored in a
list of the form ((STATE KEY BINDING)).

Sort output on state then key.
2018-06-08 09:52:15 -07:00
Justin Burkett 29abe9692f Convert define-key calls to evil-collection-define-key ones 2018-06-08 09:52:15 -07:00
Justin Burkett 29759c9419 Remove package arg from evil-collection-define-key
Implement version of evil-define-key instead. The bindings are made immediately
if the map is available. Otherwise, there are lazily made in the same way that
evil-define-key makes them.
2018-06-08 09:52:15 -07:00
Justin Burkett 317e115a95 Fix printing keys with pipe char in evil-collection-describe-all-bindings 2018-06-08 09:52:15 -07:00
Justin Burkett f9c38d26ea Change name of evil-collection-bindings-record
Use two dashes for internal variable
2018-06-08 09:52:15 -07:00
Justin Burkett 0a913f9df6 Make requested changes to prior two commits
See #143
2018-06-08 09:52:15 -07:00
Justin Burkett e60988f625 Add evil-collection-describe-all-bindings
This is a simple function to write out known evil-collection bindings to a new
buffer.
2018-06-08 09:52:15 -07:00
Justin Burkett 0e7698dd1a Add support for {white,black}lists and binding records
Add and use evil-collection-define-key, which is a custom keybinding function
that checks evil-collection-key-{white,black}list before binding each key and
stores a record of the keybindings in evil-collection-bindings-record.

Modify evil-collection-util-inhibit-insert-state to conform to
evil-collection-define-key.
2018-06-08 09:52:15 -07:00
Pierre Neidhardt bca66d36fd helm: Replace with-helm-buffer macro to fix potential byte-code version conflict 2018-06-06 12:55:29 +02:00
Pierre Neidhardt 92e01bdbc7 pdf: Bind "o" to 'pdf-outline 2018-06-06 12:39:59 +02:00
Kawin Nikomborirak 2915bd05c1 add TODO to find a root cause 2018-06-06 01:10:39 -07:00
Kawin Nikomborirak b84075fa58 add a count to pdf-tool's next-line-or-next-page
Though `pdf-view-next-line-or-next-page` and the `previous` version
both have number arguments, vi-style number arguments do not seem to
work. Even more strangely, if I remove the `dotimes` and change the
number arguments from `1` to `2` the pdf is still only scrolled
once. In `evil-emacs-state`, `M-2 <down>` works just fine in the
original version.
2018-06-06 01:10:39 -07:00
Kawin Nikomborirak 1eb7a1fe38 add proper escape to ivy minibuffer 2018-06-04 18:13:21 -07:00
Kawin Nikomborirak 9ef4a4037b Revert "add a count to pdf-tool's next-line-or-next-page"
This reverts commit b29e7470c8.
2018-06-04 18:13:21 -07:00
Kawin Nikomborirak 63b0feda98 add a count to pdf-tool's next-line-or-next-page
Though `pdf-view-next-line-or-next-page` and the `previous` version
both have number arguments, vi-style number arguments do not seem to
work. Even more strangely, if I remove the `dotimes` and change the
number arguments from `1` to `2` the pdf is still only scrolled
once. In `evil-emacs-state`, `M-2 <down>` works just fine in the
original version.
2018-06-04 18:13:21 -07:00
Vasilij Schneidermann 050af5d78f Abort company search with single <escape> 2018-05-29 18:10:24 -07:00
Pierre Neidhardt 105e01c6dd readme: Fix formatting of ~evil-collection-init~ example 2018-05-29 23:23:55 +02:00
James Nguyen 9a3657b84d Use prefix of file
Hope this doesn't break anything for anyone else!
2018-05-26 01:07:38 -07:00
James Nguyen 817bd9c32a Change name in comment 2018-05-26 01:07:30 -07:00
James Nguyen 7f6c7d849f Add headers 2018-05-26 01:07:22 -07:00
Pierre Neidhardt 4fedc08c33 Calc: Fix extension loading 2018-05-24 18:36:00 +02:00
Jay Kamat 0b05e784ec Go to top/bottom of image for pdf files 2018-05-19 09:50:55 +02:00
Jay Kamat 37e03ec0cd Force isearch on for pdf files
Normal search does not do anything at all in pdf files, so force
isearch to be used (which is overridden in pdf tools)
2018-05-19 09:50:55 +02:00
Pierre Neidhardt 46d242d41e Emms: Fix "d" and "gd" bindings to dired 2018-05-14 22:11:31 +02:00
Pierre Neidhardt 400b9f0c4f slime: Bind digits in sldb 2018-05-11 10:40:35 +02:00
Pierre Neidhardt 6ff7e09883 readme: Remove beta warning 2018-05-11 10:34:56 +02:00
Jay Kamat eab93210c1 Convert evil-collection-evil-search-enabled to a function 2018-05-09 21:53:01 +02:00
Jay Kamat 50cfbcd985 Add pseudo folding to emms 2018-05-09 21:53:01 +02:00
Jay Kamat a055728ec5 Fix evil search in info mode 2018-05-09 21:53:01 +02:00
Pierre Neidhardt 212a80e53e Emms: Fix "n" / "N" bindings in browser 2018-05-06 11:22:51 +02:00
James Nguyen f40704a57f Match eldoc integration with evil
9589f2c099
2018-04-22 14:42:46 -07:00
James Nguyen d36f931be2 Add git-timemachine to list 2018-04-21 11:27:57 -07:00
James Nguyen 669fc380a7 Git-timemachine: Don't sharp quote 2018-04-21 11:27:17 -07:00
James Nguyen c64bc1b274 Guix: Add optional require 2018-04-21 11:27:07 -07:00
Dickby e619930693 Update evil-collection.el 2018-04-21 11:18:24 -07:00
Dickby c5b270fb34 Create evil-collection-lsp-ui-imenu.el 2018-04-21 11:18:24 -07:00
William Carroll 3026a3831c Support additional keybindings
Instead of using hooks to ensure keybindings, use `evil-define-minor-mode-key`,
which combine `evil-define-key` and `evil-normalize-keymaps` to ensure that
bindings take effect for minor modes.

Per PR feedback, additional functionality is supported. Also, the require
statement is more defensive for those users that don't have `git-timemachine`
installed as a dependency.
2018-04-20 20:10:15 -07:00
William Carroll 799866e90e Add licensing information
Adds licensing copy, which was taken from another module in this repository.
2018-04-20 20:10:15 -07:00
William Carroll 9298988cc4 Support git-timemachine
Supports evil bindings for git-timemachine. On my machine, git-timemachine
starts with evil in normal mode, which is problematic when trying to access the
keybindings "n" and "p", which navigate to the next and previous revisions.
Additionally, normal mode eclispses "q", which exits the mode.

I tried using `(evil-set-initial-state 'git-timemachine-mode 'motion)`, but that
didn't work. I assume this is because `git-timemachine` is a minor-mode. To work
around this, I used `add-hook` to ensure motion mode was the initial state.

Once motion mode is the initial state, "p" and "q" become available.
Unfortunately, "n" is still not. To get around this, I used a buffer-local
binding in the local motion state map to map "n" appropriately. One known
shortcoming of this approach is that there is no cleanup done after exiting the
mode.

Any suggestions are eagerly welcomed. Forgive any crude techniques that I used
to get this functioning. I just wanted to broach the discussion with some of the
other maintainers to get some insights and hopefully augment my implementation
as needed.
2018-04-20 20:10:15 -07:00