Commit Graph

34 Commits

Author SHA1 Message Date
Henrik Lissner
86ce933fd8
Bump :tools
abo-abo/define-word@08c71b1 -> abo-abo/define-word@3af6825
brotzeit/helm-xref@6b4a8bd) -> brotzeit/helm-xref@23f1174)
charignon/github-review@fab440a -> charignon/github-review@e2123cc
cjohansson/emacs-ssh-deploy@1bb2f82 -> cjohansson/emacs-ssh-deploy@cc91b56
editorconfig/editorconfig-emacs@9bc1343 -> editorconfig/editorconfig-emacs@a6c70da
emacs-lsp/dap-mode@4b18543 -> emacs-lsp/dap-mode@400ec52
emacs-lsp/lsp-mode@65034e1 -> emacs-lsp/lsp-mode@fb4c35c
emacsorphanage/quickrun@ce7383c -> emacsorphanage/quickrun@005d269
jacktasia/dumb-jump@0d74b2f -> jacktasia/dumb-jump@fbbe6b0
k1LoW/emacs-ansible@b5ef594 -> k1LoW/emacs-ansible@cf6b8f0
magit/forge@feee7e2 -> magit/forge@031e4f0
magit/magit@321214c -> magit/magit@2fb3bf7
millejoh/emacs-ipython-notebook@99a4718 -> millejoh/emacs-ipython-notebook@1bfb80c
purcell/envrc@1dc5aad -> purcell/envrc@da8e306
realgud/realgud@332d136 -> realgud/realgud@ff66001
tumashu/posframe@7b92a54 -> tumashu/posframe@a99da9f
2020-10-11 16:21:05 -04:00
Chr
5c6a577303 Fix installation instructions for Archlinux in direnv/README.org 2020-09-05 10:19:00 +03:00
Henrik Lissner
6f49f2151e
Fix #3812: direnv not in scope for babel execution 2020-08-24 22:27:40 -04:00
Henrik Lissner
6444662131
Fix envrc not being activated correctly
Fixes #3812
2020-08-23 15:18:03 -04:00
Henrik Lissner
06c404ecb1
tools/direnv: replace direnv package with envrc
wbolster/emacs-direnv uses an approach that mutates global state,
allowing a direnv to bleed into unrelated buffers and contexts. For this
to work it must rereads the direnv every time you switch buffers, which
can be very slow.

purcell/envrc, on the other hand, makes env state buffer-local, so the
direnv only needs to be read once, when a is first initialized. This is
faster and less error prone. However, it's necessary to manually reload
the direnv if you've changed your .envrc outside of Emacs (with `M-x
envrc-reload` or `M-x envrc-reload-all`).
2020-08-21 04:45:04 -04:00
Henrik Lissner
fdf9c408e8
Bump :tools
Silex/docker.el@0874520 -> Silex/docker.el@d6233bd
editorconfig/editorconfig-emacs@19de0ec -> editorconfig/editorconfig-emacs@9a73ff7
emacs-lsp/dap-mode@8f69dc2 -> emacs-lsp/dap-mode@7ad9157
emacs-lsp/lsp-mode@81d62d5 -> emacs-lsp/lsp-mode@d5f0410
emacs-lsp/lsp-ui@271b47c -> emacs-lsp/lsp-ui@c3e7a37
emacsorphanage/quickrun@2e37ce9 -> emacsorphanage/quickrun@c6ce1f3
gilbertw1/dash-docs@111fd9b -> gilbertw1/dash-docs@dafc8fc
jacktasia/dumb-jump@d760aa8 -> jacktasia/dumb-jump@d86f59c
joaotavora/eglot@d99a447 -> joaotavora/eglot@ac9239b
magit/forge@09bf8ad -> magit/forge@6f299d2
magit/magit@b1b2683 -> magit/magit@ae82fcf
millejoh/emacs-ipython-notebook@42134ad -> millejoh/emacs-ipython-notebook@ee31cdb
paradoxxxzero/jinja2-mode@cfaa7bb -> paradoxxxzero/jinja2-mode@4540f99
tkf/emacs-request@216d570 -> tkf/emacs-request@912525c
tumashu/posframe@093b29a -> tumashu/posframe@6285217
wbolster/emacs-direnv@1daf479 -> wbolster/emacs-direnv@f5484b0
yoshiki/yaml-mode@cecf4b1 -> yoshiki/yaml-mode@34648f2
2020-06-02 19:52:42 -04:00
Henrik Lissner
b92f41bfb2
Revert d697ff481
Fixes #3158
2020-05-18 15:12:13 -04:00
Henrik Lissner
d697ff481e
Update direnv unconditionally in some cases 2020-05-18 01:38:22 -04:00
Henrik Lissner
40c185bd70
Bump :tools
Silex/docker.el@a2092b3 -> Silex/docker.el@0874520
emacs-lsp/dap-mode@0b9c8f2 -> emacs-lsp/dap-mode@804e364
emacs-lsp/helm-lsp@db24399 -> emacs-lsp/helm-lsp@6b5ce18
emacs-lsp/lsp-mode@4898d35 -> emacs-lsp/lsp-mode@87ea1df
emacs-straight/rainbow-mode@3ef813d -> emacs-straight/rainbow-mode@f780ddb
emacsorphanage/quickrun@50e07e7 -> emacsorphanage/quickrun@2e37ce9
magit/magit@8de6ecf -> magit/magit@d27d6e4
maxchaos/emacs-powerthesaurus@81a262e -> maxchaos/emacs-powerthesaurus@4a83478
millejoh/emacs-ipython-notebook@1322d8c -> millejoh/emacs-ipython-notebook@42134ad
politza/pdf-tools@0159cb1 -> politza/pdf-tools@d971298
realgud/realgud@b854e04 -> realgud/realgud@e03446f
tumashu/posframe@e62e584 -> tumashu/posframe@093b29a
zx2c4/password-store@88936b1 -> zx2c4/password-store@07b169e

We're also transitioning from abbreviated SHA1 hashes to full ones. See
45cdfb125 for why.
2020-04-30 01:27:58 -04:00
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