Commit Graph

27 Commits

Author SHA1 Message Date
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