Commit graph

25 commits

Author SHA1 Message Date
Henrik Lissner
566a5c8a32
Bump :tools
krzysztof-magosa/company-ansible@8d1ffbc -> krzysztof-magosa/company-ansible@79dd421
realgud/realgud@2cca776 -> realgud/realgud@94f2835
emacs-lsp/dap-mode@d10e254 -> emacs-lsp/dap-mode@e2086fc
wbolster/emacs-direnv@1f93e3f -> wbolster/emacs-direnv@1daf479
Silex/docker.el@baba7f7 -> Silex/docker.el@a2092b3
editorconfig/editorconfig-emacs@5c67d22 -> editorconfig/editorconfig-emacs@19de0ec
millejoh/emacs-ipython-notebook@b265205 -> millejoh/emacs-ipython-notebook@57e84c6
syohex/emacs-quickrun@55bbe5d -> syohex/emacs-quickrun@50e07e7
jacktasia/dumb-jump@b5185e3 -> jacktasia/dumb-jump@e8e9b0c
magit/magit@55c5c7c -> magit/magit@68b5a13
magit/forge@c2fbce6 -> magit/forge@2e2d26c
alphapapa/magit-todos@ad5663a -> alphapapa/magit-todos@a0e5d1f
charignon/github-review@3fb7cc2 -> charignon/github-review@50c6bcc
syohex/emacs-terraform-mode@6973d1a -> syohex/emacs-terraform-mode@2967e7b
2020-03-27 16:47:11 -04:00
Henrik Lissner
27e5291b5a
Bump :tools direnv
wbolster/emacs-direnv@fd0b6bb -> wbolster/emacs-direnv@1f93e3f
2020-02-29 11:40:34 -05:00
Henrik Lissner
7afa8a7e90
Refactor tools/direnv 2020-02-06 15:29:28 -05:00
Henrik Lissner
a12a54b28f
Revert direnv modifications
Not worth the trouble. I'll move it to my private config.

Fixes #2384
Closes #2384
2020-02-02 03:18:49 -05:00
Henrik Lissner
6758110a25
Properly disable direnv when direnv-mode is disabled 2020-01-25 19:02:01 -05:00
Henrik Lissner
a9402cfb55
Fix #2373: bring back package pinning
This needs some serious refactoring...
2020-01-25 19:02:00 -05:00
Henrik Lissner
4cc14389e8
PIN ALL THE PACKAGES 2020-01-14 22:32:11 -05:00
Henrik Lissner
3fe6f7f3d9
tools/direnv: update lorri setup instructions
It is now available under services.lorri in 19.09.
2020-01-09 15:19:52 -05:00
Henrik Lissner
3743bc70ab
tools/direnv: fix async-shell-command 2019-12-01 15:42:05 -05:00
Henrik Lissner
4860bb86ce
tools/direnv: only update on major mode change
Rather than on buffer-switch. This makes switching windows much faster,
but introduces a (low) risk of a stale environment. Needs more testing.
2019-10-18 22:34:41 -04:00
Henrik Lissner
efbc57a519
tools/direnv: update lorri overlay #1808 2019-09-22 11:57:40 -04:00
Henrik Lissner
880c581c0d
tools/direnv: add README 2019-08-27 12:50:10 -04:00
Henrik Lissner
a9b5640d1f
tools/direnv: remove redundant focus-in hook
It's redundant with doom-switch-frame-hook
2019-08-27 00:09:50 -04:00
Henrik Lissner
8766499b0d
Fix some file permissions errors
Occurs when deferred packages are loaded while in an unreadable or
non-existent directory.
2019-08-27 00:05:12 -04:00
Henrik Lissner
3423974234
Minor refactors & tweaks across the board 2019-08-06 14:50:42 -04:00
Henrik Lissner
19ecf8e46a
Correct last inline hook defuns
See a3e262c7 for rationale
2019-07-28 16:10:53 +02:00
Henrik Lissner
82ae3a73f3
def-advice!->defadvice! & conform to new advice conventions
This commit does two things:

- Renames def-advice! to defadvice!, in the spirit of naming convenience
  macros after the function/macro they enhance or replace.
- Correct the names of advice functions to indicate visibility and
  intent. A public advice function like doom-set-jump-a is meant to be
  used elsewhere. A private one like +dired--cleanup-header-line-a
  shouldn't -- it likely won't work anywhere but the function(s) it was
  made to advise.
2019-07-23 17:24:56 +02:00
Henrik Lissner
76cacb5bfe
💥 Rename def-package! -> use-package!
Calling this pivotal macro "def-package!" has frequently been a source
of confusion. It is a thin wrapper around use-package, and it should be
obvious that it is so. For this reason, and to match the naming
convention used with other convenience macros/wrappers, it is now
use-package!.

Also changes def-package-hook! -> use-package-hook!

The old macros are now marked obsolete and will be removed when straight
integration is merged.
2019-07-23 12:50:45 +02:00
Henrik Lissner
8e096f7a23
tools/direnv: conform to new hook conventions 2019-07-22 23:51:12 +02:00
Henrik Lissner
51d3b1b424
💥 revise advice naming convention (1/2)
This is first of three big naming convention updates that have been a
long time coming. With 2.1 on the horizon, all the breaking updates will
batched together in preparation for the long haul.

In this commit, we do away with the asterix to communicate that a
function is an advice function, and we replace it with the '-a' suffix.
e.g.

  doom*shut-up -> doom-shut-up-a
  doom*recenter -> doom-recenter-a
  +evil*static-reindent -> +evil--static-reindent-a

The rationale behind this change is:

1. Elisp's own formatting/indenting tools would occasionally struggle
   with | and * (particularly pp and cl-prettyprint). They have no
   problem with / and :, fortunately.
2. External syntax highlighters (like pygmentize, discord markdown or
   github markdown) struggle with it, sometimes refusing to highlight
   code beyond these symbols.
3. * and | are less expressive than - and -- in communicating the
   intended visibility, versatility and stability of a function.
4. It complicated the regexps we must use to search for them.
5. They were arbitrary and over-complicated to begin with, decided
   on haphazardly way back when Doom was simply "my private config".

Anyhow, like how predicate functions have the -p suffix, we'll adopt the
-a suffix for advice functions, -h for hook functions and -fn for
variable functions.

Other noteable changes:
- Replaces advice-{add,remove}! macro with new def-advice!
  macro. The old pair weren't as useful. The new def-advice! saves on a
  lot of space.
- Removed "stage" assertions to make sure you were using the right
  macros in the right place. Turned out to not be necessary, we'll
  employ better checks later.
2019-07-22 02:27:45 +02:00
Henrik Lissner
9733db65d2
tools/direnv: fontify direnv stdlib keywords 2019-07-10 02:29:13 +02:00
Henrik Lissner
b6a469f13d
tools/direnv: update direnv on frame switch 2019-07-10 02:28:52 +02:00
Henrik Lissner
ef8cd55234
tools/direnv: fix direnv+flycheck integration
Also fixes direnv+flycheck for nix users by consulting direnv before
looking for flycheck executables.
2019-07-09 16:11:36 +02:00
Henrik Lissner
17bd6e43c6
tools/direnv: consult direnv less frequently
By checking on doom-switch-{buffer,window}-hook and focus-in-hook, which
fires a lot less often than post-command-hook.
2019-07-08 21:23:49 +02:00
Henrik Lissner
cb5abcea0e
Add tools/direnv module 2019-04-05 03:16:37 -04:00