Commit graph

757 commits

Author SHA1 Message Date
Henrik Lissner
ec55884aae
General, minor reformatting & refactor 2019-02-18 00:47:46 -05:00
Henrik Lissner
ffcfde71d9
tools/magit: replace magithub with forge #1174
And we're back to using the latest version of magit, which should
resolve void-function and void-variable errors that we were avioding in
33ef9034.
2019-02-16 16:54:26 -05:00
SteamedFish
d6496fc168 rename vterm from :emacs to :tools 2019-02-17 00:18:39 +08:00
Henrik Lissner
33ef90343e Revert to stable version of magit, temporarily
Magit introduced some breaking changes in a recent commit that breaks
evil-magit and magithub. Magithub appears to be migrating to forge, so
until evil-magit has updated and I've properly replaced magithub with
forge, we'll use an earlier version of magit instead.
2019-02-14 23:47:29 -05:00
Henrik Lissner
ba0ccc1d34
tools/magit: cleanup magit concurrently
A quick attempt to make +magit/quit faster.
2019-02-14 00:40:19 -05:00
Henrik Lissner
9f96e3eae8
Merge pull request #1076 from filalex77/magit-forge
[tools/magit] Add magit-forge
2019-02-12 15:33:48 -05:00
Henrik Lissner
99fd8b4e1b
O'byte-compiler
Who forbade the obsolete,
Hooks, functions; adieu.

(And an unused argument too)
2019-02-03 18:42:09 -05:00
Henrik Lissner
951b2be7d1
Enable magit-todos-mode globally
Rather than treat it like it's a minor mode.
2019-02-03 18:39:34 -05:00
Oleksii Filonenko
5b44d3fa61
Set forge-database-file in doom-etc-dir
Suggested by @luigy
2019-01-26 12:18:31 +02:00
Henrik Lissner
fa5bebc13a
tools/magit: fix ivy's sorting with magit #1131
By default, magit-completing-read-function is set to
magit-builtin-completing-read, which already includes ivy support.
2019-01-23 14:43:01 -05:00
Henrik Lissner
36a97b28aa
Fix flickering PDFs in pdf-view-mode #1107 2019-01-22 19:29:13 -05:00
Henrik Lissner
bd8f33df52
tools/magit: :when+not => :unless
Minor refactor
2019-01-21 22:27:03 -05:00
Henrik Lissner
c1e1cc78f4
Merge pull request #1092 from seanfarley/develop
pdf: fix error when not using evil
2019-01-20 15:25:00 -05:00
Oleksii Filonenko
5287c48092
Move Forge binding to config/default/+evil-bindings 2019-01-11 15:00:24 +02:00
Oleksii Filonenko
b796ad76cc
Move Forge leader binding to magit/+evil-bindings 2019-01-10 13:15:54 +02:00
Oleksii Filonenko
0d3c8e3d9a
Fix def-package for magit/forge
- add :after magit
- fix space position after "Forge"
2019-01-10 13:09:14 +02:00
Sean Farley
6f0d01a29e pdf: remove doom-leader-key from define-key!
This is no longer needed now that doom uses general.el.
2019-01-07 14:01:19 -08:00
Henrik Lissner
e275c375fc
tools/wakatime: add README 2019-01-05 20:02:47 -05:00
Henrik Lissner
b56639e31b
Remove deprecated set! & def-setting! macros 2019-01-05 17:48:46 -05:00
Adrian Parvin D. Ouano
7c368d4f9a
Add configuration for magit forge 2019-01-04 09:42:56 +08:00
Oleksii Filonenko
76c31dc623 [tools/magit] Add magit-forge 2019-01-04 07:58:10 +08:00
Henrik Lissner
e4f2833f26
tools/ein: rewrite README 2019-01-03 01:39:23 -05:00
UndeadKernel
4036f3dad1 pdf-tools: fixes for the new modeline module
Sneak in a comment that addresses some TODOs.
2019-01-02 15:16:05 +01:00
Oleksii Filonenko
5a8a367510
[tools/password-store] copy-user key in ivy-pass 2018-12-27 16:16:13 +02:00
Henrik Lissner
3f195614d9
Normalize :leader/:localleader keybinds
Evil states no longer apply to them. Also removes x-alt-keysym.
2018-12-23 23:54:27 -05:00
Henrik Lissner
451c16b8ee
Revise :after-call & :defer-incrementally comments
Now implicitly adds the current package to :defer-incrementally's list
of packages.
2018-12-23 00:25:51 -05:00
Henrik Lissner
d6cb0ec5f5
General cleanup & minor refactoring 2018-12-22 04:25:15 -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
67fa4b31ea
Restore =S gpg-sign option for magit
Curiously, interactive rebasing seems to fail to sign commits without
this option present in some cases.
2018-12-07 18:00:17 -05:00
Henrik Lissner
7214affc73 tools/upload: set ssh-deploy vars sooner
So that they don't overwrite file/dir local vars in some cases.
2018-12-05 22:11:54 -05:00
Aria
fe8b17d6da move projectile fd out of magit.el
lol
2018-12-04 20:09:44 +11:00
Aria
e7141d2c96 use --type f with fd
will show folders otherwise
2018-12-02 00:06:55 +11:00
Aria
c3dc660b1b Use fd for populating projectile cache 2018-11-29 23:22:07 +11:00
Henrik Lissner
9bb5b4ef72
tools/magit: +magit-hub-features = t
Since magithub is "disabled" by default, if enabled it might be
confusing that its features aren't all enabled (which is magithub's
default behavior).
2018-10-17 00:21:18 -04:00
Henrik Lissner
794b1a94bf tools/terraform: use map!'s :after 2018-10-16 02:49:21 -04:00
Dominik Süß
6e057d53d8 autoload company-terraform 2018-10-15 09:19:21 +02:00
Dominik Süß
9a3e48d65a added company-terraform 2018-10-15 09:12:01 +02:00
Dominik Süß
73f99a1a26 Added keybinds 2018-10-11 17:32:54 +02:00
Dominik Süß
9fd5b7d0ed Added terraform mode 2018-10-11 17:19:35 +02:00
Henrik Lissner
f0465f22cc
tools/magit: fix +magit/quit & default display fn
When used with magit-display-buffer-traditional, q wouldn't close the
window, just kill the buffer inside.
2018-10-07 11:12:51 -04:00
Ting Zhou
e4191a944b fix +macos/open-in-default-project under ranger-mode 2018-10-04 11:13:51 -07:00
Henrik Lissner
b573fcce20
quit-window on multiple magit-status windows
If you accidentally open multiple magit status windows, you'll be stuck
in a deadlock, where `q` will do nothing. Now, +magit/quit will use
`quit-window` on excess magit-status windows instead.
2018-10-03 00:04:08 -04:00
Henrik Lissner
b674aef31b
tools/editorconfig: add binary check to doctor.el 2018-09-28 23:52:22 -04:00
Henrik Lissner
ad3024ae9d
Merge pull request #916 from seanfarley/smf/minor-fixes
magit: only implement leader key logic when doom-leader-key is non-nil
2018-09-28 21:16:17 -04:00
Henrik Lissner
53fe7a1f04 Refactor Project API to reflect changes upstream
projectile-project-root no longer returns `default-directory` if not in
a project (it returns nil). As such, doom-project-* functions (and their
uses) have been refactored.

+ doom-project-p & doom-project-root are aliases for
  projectile-project-p & projectile-project-root.
+ doom-project-{p,root,name,expand} now has a DIR argument (for
  consistency, since projectile-project-name and
  projectile-project-expand do not).
+ The nocache parameter is no longer necessary, as projectile's caching
  behavior is now more sane.
+ Removed some projectile advice/hacks that are no longer necessary.
+ Updated unit tests
2018-09-28 21:13:27 -04:00
Henrik Lissner
078e3028a6 Minor, general comment revision 2018-09-28 21:02:59 -04:00
Sean Farley
8efc5828ea magit: only implement leader key logic when doom-leader-key is non-nil 2018-09-28 16:58:26 -07:00
Henrik Lissner
fcd1e913c5
tools/magit: update vc on +magit/quit
Instead of magit-post-refresh-hook, which fires much more frequently.
Updating vc across all buffers is expensive, so let's only do it when we
quit magit.

Warning: this may make quitting magit expensive when you have many
buffers open. Still searching for a better solution.
2018-09-26 12:10:00 -04:00
UndeadKernel
239c183b70 tools/pdf: recognize modeline and doom-modeline 2018-09-26 12:55:22 +02:00
Henrik Lissner
20cf412c96
tools/pdf: revert fd7f498
Causes an issue where cursor invisibility persists through a workspace
session restore.

Relevant to #892
2018-09-21 10:47:26 -04:00