Commit graph

856 commits

Author SHA1 Message Date
Henrik Lissner
a57c0fbede
feature/lookup: remove devdocs support (for now)
devdocs-lookup is broken at the moment. devdocs search is still
available through +lookup/online as a provider however. This may be
reversed later, when (and if) we find a better devdocs backend.
2018-08-28 20:52:27 +02:00
Henrik Lissner
2b560a6a0e
General & minor refactoring 2018-08-28 13:36:44 +02:00
Henrik Lissner
9b84d800f3
Make numbered vim markers global
In evil, registers 2-9 are buffer-local. In vim, they're global. This
fixes that.
2018-08-27 21:25:52 +02:00
Henrik Lissner
bd7f1f6d17
Fix wrong-type-arg on project switch #836
A regression caused by e40a58c4, which made +workspace-new return
something other than a perspective struct.
2018-08-27 20:07:17 +02:00
Henrik Lissner
3e7f1ccf4f
Fix reference to doom-narrow-buffer
This was renamed to doom/clone-and-narrow-buffer at some point.
2018-08-27 03:25:49 +02:00
Henrik Lissner
1ed8894826
+workspace/delete: error if workspace doesn't exist 2018-08-26 14:14:53 +02:00
Henrik Lissner
e40a58c423
Optimize +workspace-new & workspace creation
This is much faster than the old method of switching to the persp to
modify them.
2018-08-26 14:12:50 +02:00
Henrik Lissner
b14bf99d4b
Fix over-reindentation when o/O continues comments
This would run indent-according-to-mode after creating a new line, which
would often throw new comment lines out of whack. Now it preserves the
indentation of the originating line.

Also fixes continuation whitespace issues with evil-open-above on
C-style block comments.
2018-08-25 19:45:23 +02:00
Henrik Lissner
e3f412abb7
Add +evil-want-o/O-to-continue-comments
Controls whether o/O continue commented lines. Since this is the default
behavior of vim, it is enabled by default.
2018-08-23 18:42:09 +02:00
Henrik Lissner
4dfb84211b
feature/lookup: minor refactor 2018-08-22 20:38:16 +02:00
Henrik Lissner
40eda029ab
Fix "Select a root directory" prompts
Occurs when :feature snippets is disabled, but :feature file-templates
is enabled.
2018-08-20 12:43:26 +02:00
Henrik Lissner
104e01f588
Improve set-repl-handler!'s docstring 2018-08-15 21:19:59 +02:00
Henrik Lissner
9584dd6005
Ensure file-template snippets are loaded
In case :feature snippets is disabled.
2018-08-15 21:19:59 +02:00
Henrik Lissner
486d4a12e7
Fix wrong-type-argument error opening new files
Caused when either your snippets library is empty or a file-template
doesn't exist when expanded.
2018-08-15 21:19:56 +02:00
Henrik Lissner
5714ff423a
Fix evil jumplist after jumping to ag match
helm-ag would formerly add multiple entries to the jump list. It now
only adds one, and recenters the window when jumping to an ag match.
2018-08-13 21:47:55 +02:00
Henrik Lissner
18925b51db
Update comments in feature/evil/+everywhere 2018-08-11 21:03:15 +02:00
Henrik Lissner
1490b9ec8d
Prioritize private snippets over built-in ones
In the case of snippet conflicts, you'd normally be prompted to select
which snippet you want. Built-in snippets are now disregarded if
conflicting private ones exist.

This makes it easier for users to add overriding snippets to
DOOMDIR/snippets.
2018-08-11 16:48:31 +02:00
Henrik Lissner
e127819d88
Don't override ispell-program-name
Better not to override possible user customizations, only adjust
ispell-extra-args in case of aspell, to improve its performance.
2018-08-11 01:59:37 +02:00
Henrik Lissner
916210d5a8
feature/lookup: silence cl-destructuring-bind errors
In likely case where (bounds-of-thing-at-point 'symbol) returns nil,
cl-destructuring-bind would throw a wrong-number-of-args error we don't
care about.
2018-08-08 23:37:29 +02:00
Henrik Lissner
8d26879f99
Add :editor multiple-cursors module
Moves evil-mc/evil-multiedit out of feature/evil.
2018-08-06 00:31:23 +02:00
Henrik Lissner
639349d0ed
feature/spellcheck: add hunspell/aspell support 2018-08-02 21:44:09 +02:00
Henrik Lissner
5772ace0ff
Update +spellcheck-immediately docstring
It won't work on LaTeX-mode-hook because flyspell-mode is added to
TeX-mode-hook, which runs before the former.
2018-08-02 16:46:04 +02:00
Henrik Lissner
5f1618e7a1
feature/spellcheck: minor reformatting 2018-08-02 16:40:47 +02:00
Henrik Lissner
43dcaa1853
Demote evil-collection errors 2018-07-31 19:35:30 +02:00
Henrik Lissner
e94f1f39f4
Enable evil-collection-(deadgrep|imenu-list) 2018-07-30 12:34:53 +02:00
Henrik Lissner
48af60bb38
Remove redundant :mode from c-mode file template 2018-07-17 03:20:58 +02:00
Henrik Lissner
53df5178a3
Fix wrong-type-argument: commandp error when opening some REPLs 2018-07-16 14:06:08 +02:00
Henrik Lissner
b38cbcd060
Fix void-function (setf alist) error 2018-07-15 01:00:19 +02:00
Henrik Lissner
e97fd7558c
Allow file template :trigger to be a function 2018-07-14 23:16:38 +02:00
Henrik Lissner
6efd9d4573
Allow set-repl-handler! to accept multiple modes
As first argument.
2018-07-14 23:16:35 +02:00
Henrik Lissner
3db462ba54
Add regexp support to :mc ex command 2018-07-13 23:35:52 +02:00
Henrik Lissner
6e52e2d07c
Refactor +evil:mc
+ Improve error handling when no PATTERN is given (reported by @ar1a)
+ Report correct number of resulting cursors
+ Handle edge case where only one cursor is created
+ Report edge case where no cursors are created
2018-07-13 12:58:58 +02:00
Henrik Lissner
933e52b886
Don't enable evil-visualstar-mode
Redundant with our manual */# keybinds.
2018-07-10 14:21:45 +02:00
Henrik Lissner
93917fd8a2
Fix gsn/gsN & gs*/gs# evil-easymotion binds 2018-07-10 14:21:30 +02:00
Henrik Lissner
34de826ac4
+workspace-contains-buffer-p -> persp-contain-buffer-p
Wrapper is unnecessary.

Also remove unnecessary type checking.
2018-07-09 21:53:50 +02:00
Henrik Lissner
4941e327f4
General refactor for readability
+ Removes redundant/unhelpful comments
+ Renames functions, hooks and variables to be self-documenting
+ Use add-to-list to ensure idempotency (and is more performant)
2018-07-09 15:33:31 +02:00
Henrik Lissner
1a068f82f1
Add +workspace/load-last-session
And fix the load last session button on dashboard.
2018-07-07 11:41:24 +02:00
Henrik Lissner
cd26e11e94
Merge pull request #740 from fuxialexander/counsel_find_file_action
Add ivy action to counsel-find-file and counsel-projectile-switch-project
2018-07-05 13:49:04 +02:00
Henrik Lissner
daa05eb7f2
Fix regexp for realgud popup rule
Causing invalid-regexp errors.
2018-07-04 21:23:56 +02:00
fuxialexander
8f74ce982d add action for counsel-projectile-switch-project 2018-07-04 23:59:36 +08:00
Wang Hao
1ce3bedbbb fix wrong argument order in usage of alist-get 2018-07-02 11:05:10 +08:00
Henrik Lissner
dd71f54e5e
Fix reuse of same repl buffer across projects 2018-07-01 01:10:51 +02:00
Henrik Lissner
eebe852de4
Fix workspace cleaning up visible popups
On :cleanup or doom/cleanup-session
2018-06-30 23:16:48 +02:00
Henrik Lissner
66e62e8b6e
destructuring-bind => cl-destructuring-bind 2018-06-30 02:58:25 +02:00
Henrik Lissner
91c4448ed2
Refactor +workspaces|associate-frame
No need to set current frame on first frame.
2018-06-30 02:29:19 +02:00
Henrik Lissner
83ba527afd
Refactor auto-add-buffer functionality
Use built-in mechanism for auto-adding buffers to current workspace,
rather than reinvent the wheel.
2018-06-30 02:29:18 +02:00
Henrik Lissner
537cc9e1ed
Rewrite doom-real-buffer-p; require first arg
Because of how widely used this function is, I'd rather it be as
explicit as possible to avoid bugs and to make it faster.
2018-06-30 01:57:51 +02:00
Henrik Lissner
2ffad42466
Prevent persp-mode throwing an error on kill-emacs
This would otherwise stop Emacs from quitting.
2018-06-29 22:23:44 +02:00
Henrik Lissner
db0ad48e4d
Enable evil-collection-elfeed 2018-06-29 14:12:50 +02:00
Henrik Lissner
888bd97093
Fix evil-collection-neotree throwing void-function
Because it is using the neotree-make-executor macro without requiring
`neotree` at compile time.

Also, remove the helm fix because they no longer use the
`with-helm-buffer` macro.
2018-06-28 23:16:23 +02:00