Henrik Lissner
3ba364ae10
Minor refactoring across the board
2021-05-23 22:09:07 -04:00
Henrik Lissner
7c273ad173
Remove hard dependency on sp-point-in-* predicates
2021-05-16 21:22:06 -04:00
Henrik Lissner
d76d50c1c9
Fix #4676 : one-off on go-to-EOL if comment at BOL
...
Before this commit:
1. With `|;;; hello`
2. Press `C-e`: `;|;; hello`
3. Press `C-e` again: `;;; hello|`
After:
1. With `|;;; hello`
2. Press `C-e`: `;;; hello|`
3. Press `C-e` again: `|;;; hello`
2021-03-10 13:03:29 -05:00
Janfel
8331f4f896
Fix interactive spec of doom/retab
2021-02-02 02:41:45 +01:00
Henrik Lissner
60ba42ca4a
Fix #3873 : use thing-at-point for nox & elpy
2020-08-31 23:11:33 -04:00
Henrik Lissner
46d6d0b586
Use symbol-at-point instead of xref w/ eglot
...
Otherwise doom-thing-at-point-or-region will return nil, causing
"Nothing under point" warnings when using lookup commands.
2020-06-29 15:12:30 -04:00
Gerry Agbobada
32f9070614
Filter out 'eglot backend from doom-thing-at-point
...
Context : https://github.com/joaotavora/eglot/issues/503
Fixes a bug where having eglot enabled in a buffer will make `SPC *` search the whole project for literally `LSP Identifier at point.`
2020-06-18 23:59:33 +02:00
Henrik Lissner
b78fc4eb76
Minor refactor & reformatting across the board
2020-04-08 15:30:10 -04:00
Henrik Lissner
8f685a3c31
Fix #2756 : make C-a/C-e truly shift-select aware
2020-03-28 00:41:04 -04:00
Henrik Lissner
f4ff7fda38
Fix #2756 : inhibited shift-selection on C-a/C-e
2020-03-27 03:03:37 -04:00
Henrik Lissner
4a5cf04761
General refactors & appease byte-compiler
2020-02-02 02:05:20 -05:00
Henrik Lissner
51bb3a2b35
Fix #2357 : C-a moves across lines
2020-01-12 02:09:25 -05:00
Henrik Lissner
63d42c97bc
Pass POS to sp-point-in-string
...
And doom-point-in-string-or-comment-p is no longer side-effect-free, due
to sp-point-in-* caching syntax-ppss.
2020-01-03 05:22:10 -05:00
Henrik Lissner
8ff15c2aeb
Optimize doom-point-in-*-p functions
...
Since we won't be dumping smartparens just yet, use it for now.
2020-01-03 02:44:29 -05:00
Henrik Lissner
8857dc1a5e
Add doom-point-in-{comment,string}-functions
...
Fixes #2297
2020-01-03 02:40:50 -05:00
Henrik Lissner
27bf3c85b5
Generalize thing-at-point & region functions
2020-01-03 02:39:47 -05:00
Henrik Lissner
2ef0ed90a4
Fix C-a/C-e #1802
...
Fixes two issues:
1. Where C-e would throw the cursor somewhere on another line (or at
BOF).
2. Fixes #1802 ; where the cursor would stop a character shy of true
end-of-text.
2020-01-01 21:19:21 -05:00
Henrik Lissner
f0e05c1a44
Fix C-w in ivy not moving up directory
...
And ensure C-w doesn't affect kill-ring from minibuffer.
2020-01-01 19:58:52 -05:00
Henrik Lissner
b88ff2a563
Fix s-backspace for non-evil users
2019-12-23 17:21:30 -05:00
Henrik Lissner
c1879945fd
Replace doom/backward-kill-to-bol-and-indent
...
WIth new evil-delete-back-to-indentation, with behaves exactly as C-u
does in vim.
2019-12-21 03:30:44 -05:00
Henrik Lissner
c360f0dceb
Minor refactor & comment/docstring revision
2019-10-26 23:44:28 -04:00
Henrik Lissner
3423974234
Minor refactors & tweaks across the board
2019-08-06 14:50:42 -04:00
Henrik Lissner
b332a923a5
Add in-house point-in-{comment,string} predicates
...
Toward uncoupling Doom from smartparens.
2019-07-27 22:56:49 +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
17d7130804
Fix #1558 : remember position on C-a/C-e
...
When the cursor is between the swap points.
2019-07-12 18:19:28 +02:00
Henrik Lissner
e6540b419b
doom/set-indent-width: set standard-indent buffer-locally
2019-07-12 16:55:36 +02:00
Henrik Lissner
fddef812ec
tools/editorconfig: refactor how we ignore lisp modes
2019-07-12 16:47:49 +02:00
Henrik Lissner
f3fa1b0324
Fix editorconfig usage in doom/set-indent-width #1561
2019-07-12 16:39:00 +02:00
Henrik Lissner
f0abd10409
Fix #1558 : doom/forward-to-last-non-comment-or-eol
...
Should jump to EOL if end-of-non-comment is before point.
2019-07-12 13:33:31 +02:00
Henrik Lissner
c627972d20
Add set-indent-width & toggle-indent-style commands
...
And SPC t I keybind
Also sorts keybinds under the SPC t prefix
2019-07-11 17:22:01 +02: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
Henrik Lissner
23467374f5
Fix doom/forward-to-last-non-comment-or-eol #1306
...
This command would no-op if used in major modes with "fake" comments.
i.e. modes where "comments" are merely highlighted as comments, but have
no comment entry in its syntax table. e.g. text-mode + git-commit-mode.
2019-04-04 15:13:48 -04:00
Henrik Lissner
d46bb287ae
General refactor of Doom core
...
- Code reduction and refactor across the board (cull unneeded minor
advise, hooks and hacks or update them)
- Revise outdated comments and docstrings
- Reorganize core autoload libraries
- Remove large file check (Emacs already has a built-in one, which we
augment to be even more performant when it does kick in)
- helpful.el can now be disabled completely through package!
2019-03-02 01:34:19 -05:00