Commit Graph

221 Commits

Author SHA1 Message Date
Vladyslav M
62f9c9827f
config/default: fix Wrong number of arguments: define-key 2018-12-25 11:18:03 +02:00
Henrik Lissner
9c2a1b1f61
config/default: TAB->[tab] for workspace keys 2018-12-25 02:45:10 -05:00
Henrik Lissner
9f2dff02fa
Rethink config/default & keybindings
+ Added +smartparens flag to config/default for default smartparens
  config.
+ Fixed +tng support for completion/company.
+ Removed super keybinds (for all but MacOS)
+ Moved "keybind fixes" to config/default/config.el (these should be
  universally available).
+ Replaced both +default-repeat-forward-key and +default-repeat-backward-key
  with +default-repeat-keys. If this variable is nil, the universal
  repeat motions won't be bound.
2018-12-24 00:04:50 -05:00
Henrik Lissner
9936532ea3
Move auth-sources & mc/list-files
...to move appropriate locations.
2018-12-23 23:16:03 -05:00
Henrik Lissner
032bde6aa2
Fix malformed keybind remapping 2018-12-22 19:34:56 -05:00
Henrik Lissner
954b0f9c5d
Minor tweaks to map! calls for correctness
+ :map arguments shouldn't be quoted
+ :localleader keys default to all states in the absence of state
  modifiers. This is preferred, rather than restricting their use to
  normal state.
+ :map* is deprecated (there is no difference between it and :map)
2018-12-22 17:01:00 -05:00
Henrik Lissner
d222327d24
Reformat SPC n keys
Used to be in general-define-key format, now in canonical map! format.
2018-12-22 16:48:42 -05:00
Henrik Lissner
fc24c3bff2
Fix #1056: S key in insert/emacs state
A keybind intended for operator mode was bound globally.
2018-12-22 16:40:46 -05:00
Henrik Lissner
4a69fb5d29
Fix non-prefix key error on MacOS
kbd is necessary for global-set-key, otherwise it reads M-` as three
keys M, - and `, and M is already bound to self-insert-command, so it
cannot be used as a prefix.
2018-12-22 14:23:11 -05:00
Henrik Lissner
43fa39eaf1
config/default: restore q, p, r, s, t leader groups 2018-12-22 05:29:57 -05:00
Henrik Lissner
5e33fefd74
Fix malformed map! yasnippet keybinds
Causing breaking errors.
2018-12-22 05:20:02 -05:00
Henrik Lissner
4daa9271a0
Introduce general.el & rewrite map!
+ Now uses an overriding keymap for leader keys, so that it is always
  available, even outside of normal/visual states. In insert/emacs
  states, or in sessions where evil is absent, an alternative prefix is
  used for leader/localleader keys. See these variables:
  + doom-leader-prefix
  + doom-leader-alt-prefix
  + doom-localleader-prefix
  + doom-localleader-alt-prefix
+ Keybinds now support alternative prefixes through the new :alt-prefix
  property. This is useful for non-evil users and non-normal evil
  states. By default, this is M-SPC (leader) and M-SPC m (localleader).
+ Removed +evil-commands flag from config/default (moved to
  feature/evil/+commands.el).
+ config/default/+bindings.el has been split into
  config/default/+{evil,emacs}-bindings.el, which one is loaded depends
  on whether evil is present or not. The latter is blank, but will soon
  be populated with a keybinding scheme for non-evil users (perhaps
  inspired by #641).
+ The define-key! macro has been replaced; it is now an alias for
  general-def.
+ Added unmap! as an alias for general-unbind.
+ The following modifier key conventions are now enforced for
  consistency, across all OSes:
    alt/option      = meta
    windows/command = super
  It used to be
    alt/option      = alt
    windows/command = meta
  Many of the default keybinds have been updated to reflect this switch,
  but it is likely to affect personal meta/super keybinds!

The map! macro has also been rewritten to use general-define-key. Here
is what has been changed:

+ map! no longer works with characters, e.g. (map! ?x #'do-something) is
  no longer supported. Keys must be kbd-able strings like "C-c x" or
  vectors like [?C-c ?x].
+ The :map and :map* properties are now the same thing. If specified
  keymaps aren't defined when binding keys, it is automatically
  deferred.
+ The way you bind local keybinds has changed:

    ;; Don't do this
    (map! :l "a" #'func-a
          :l "b" #'func-b)
    ;; Do this
    (map! :map 'local "a" #'func-a
                      "b" #'func-b)

+ map! now supports the following new blocks:
  + (:if COND THEN-FORM ELSE-FORM...)
  + (:alt-prefix PREFIX KEYS...) -- this prefix will be used for
    non-normal evil states. Equivalent to :non-normal-prefix in general.
+ The way you declare a which-key label for a prefix key has changed:

    ;; before
    (map! :desc "label" :prefix "a" ...)
    ;; now
    (map! :prefix ("a" . "label") ...)

+ It used to be that map! supported binding a key to a key sequence,
  like so:

    (map! "a" [?x])  ; pressing a is like pressing x

  This functionality was removed *temporarily* while I figure out the
  implementation.

Addresses: #448, #814, #860
Mentioned in: #940
2018-12-22 04:14:43 -05:00
Henrik Lissner
5e7a2d8703
Merge pull request #1038 from ztlevi/ranger
Adding Ranger module to doom
2018-12-13 15:04:37 -05:00
Ting Zhou
be531d4dcc emacs/dired: enable evil-window-map in motion state 2018-12-08 22:34:27 -08:00
Aria
d378fdbed0 Clean up after swoop removal
removed in 7f5e778b0c
2018-12-08 19:17:52 +11:00
Ting Zhou
d6ad5942be emacs/dired: move ranger module to ranger feature in dired module 2018-12-07 22:27:03 -08:00
Ting Zhou
b00ce82ef9 emacs/ranger: add ranger module to doom 2018-12-05 23:11:26 -08:00
Henrik Lissner
9ccb55ad44
Merge pull request #1036 from ar1a/setq_auth_sources
setq auth-sources properly
2018-12-05 22:28:47 -05:00
Henrik Lissner
db4e17d76d
Reindent auth-sources' value 2018-12-05 22:28:37 -05:00
Henrik Lissner
72bf089249 Move evilified helpful keybinds to feature/evil
So that they are available even if config/default isn't enabled.
2018-12-05 22:11:54 -05:00
Aria
a5f9b8460a setq auth-sources properly 2018-12-05 15:21:53 +11:00
Edmund Miller
ff5af78860
Add MagitHub popup default binding 2018-11-28 18:18:42 -06:00
Oleksii Filonenko
6ba406c617
Change magit-blame-addition to magit-blame
`magit-blame` is deprecated (as of Magit 2.90.0)
2018-11-12 20:37:35 +02:00
Henrik Lissner
91b76d8437
Move default snippets library to feature/snippets
Removes the +snippets flag from config/default. The default snippets can
be disabled by disabling the emacs-snippets package.
2018-11-02 18:43:44 -04:00
Henrik Lissner
6c4bf16208
config/default: +evil:fold-toggle -> +evil/fold-toggle
The command was renamed a while ago.
2018-10-17 11:41:30 -04:00
Henrik Lissner
301a01182d
config/default: move ruby sp rules
To group them with other major mode rules
2018-10-06 20:44:25 -04:00
Henrik Lissner
ed48c2d54d
Add SPC b {n,p} keys for {next,prev}-buffer 2018-10-03 11:15:27 -04:00
Henrik Lissner
ec44c5a702
Add SPC b - to toggle buffer narrowing 2018-10-03 11:14:55 -04:00
Henrik Lissner
fe425c005e
Add g-/g= keys for buffer narrowing/widening 2018-10-03 11:14:08 -04:00
Henrik Lissner
3961ba1662 Fix command-log-mode not disabling on toggle
clm/toggle-command-log-buffer enables global-command-log-mode, but
doesn't disable it on second invocation, so we use
global-command-log-mode instead.
2018-09-28 21:13:27 -04:00
Henrik Lissner
271e7689ae
Don't error when no gpg keys exist 2018-09-25 10:29:57 -04:00
Henrik Lissner
0c70d1bf08
Remove defunct [h keybind (smart-backward) 2018-09-24 08:36:20 -04:00
Henrik Lissner
fad1fc8f1b
Resolve GPG keys by user name instead of address #877
epa-file-encrypt-to is now set to the ids of all keys that match
user-full-name, if it is set. This should fix issues with multiple keys
with the same email addresses.
2018-09-21 14:06:15 -04:00
Henrik Lissner
55c54a9848
Add ]o [o keybinds -> next/prev outline heading 2018-09-21 00:55:30 -04:00
Henrik Lissner
5ef94de541 Minor refactor, reformat & comment revision 2018-09-18 21:39:54 -04:00
Henrik Lissner
9e79ea8c9c Bind C-w O => doom/window-zoom #890
+ C-w o enlargens the current window
+ C-w O deletes all other windows

Both keys undo the change on second use (unless you have changed the
frame too much since).
2018-09-18 15:19:50 -04:00
Henrik Lissner
a9c925c50b
Rename doom*newline-and-indent
To doom*newline-indent-and-continue-comments; to better describe what it
does.
2018-09-14 10:42:09 -04:00
Henrik Lissner
1718770b0e
Rebind q -> kill-this-buffer in Man-mode + evil 2018-09-13 19:15:16 -04:00
Henrik Lissner
54a088230f
config/default: remove C-{h,j,k,l} keybinds
These keybinds (particularly C-h) are a tad too imposing to be defaults.
Without C-h, the help commands in certain special modes (like magit or
org-agenda) become inaccessible.
2018-09-13 19:15:16 -04:00
Henrik Lissner
7d3ffdff06
Remove third line in section headers
This is truly important stuff. We've saved many lives with this update.
2018-09-09 09:58:19 -04:00
Ruslan Kamashev
dc3a366094 Fix bindings 2018-09-08 03:51:37 +03:00
Henrik Lissner
06c268954d
Bind SPC s r to yas-reload-all 2018-09-03 03:58:44 +02:00
Henrik Lissner
eac0c0b09e
Fix M-` keybind on MacOS
Escaping it causes it to map à instead.
2018-08-31 12:08:40 +02:00
Henrik Lissner
c4c0a1faab
Merge pull request #844 from patrl/deftBinding
Adds a default binding for deft
2018-08-31 03:30:36 +02:00
Henrik Lissner
cab0ee33d1
ui/treemacs: fix SPC o P (treemacs-find-file)
Would create a blank treemacs window when invoked before a treemacs
window was first initialized.
2018-08-29 02:16:06 +02:00
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
Patrick Elliott
686929ad7a
Adds a default binding for deft under notes 2018-08-28 11:43:00 +02:00
Henrik Lissner
16d7b552f1
Bind M-` to other-frame on MacOS 2018-08-26 22:43:28 +02:00
Henrik Lissner
2aa509b36c
Fix left/right keys in helm
These should be set to left-char/right-char, anything else is
disruptive, especially when C-b and C-f are backward/forward-word.
2018-08-25 23:38:40 +02:00
Henrik Lissner
171c87aa2c
editor/format: general fix & refactor
+ Fixes function/command formatters (like #'gofmt)
+ Fixes formatting by region
+ Adds default keybindings:
  + gQ evil operator
  + SPC c f (normal mode) to format buffer
  + SPC c f (visual mode) to format selection
2018-08-25 00:06:12 +02:00