Commit Graph

15 Commits

Author SHA1 Message Date
Sheng Yang
73e0baba08 Allow +literate-config-file to be a symbolic link
If the literate config file is a symbolic link, the tangled file is with the
target of the link, not with the literate config file.
2019-10-09 21:02:49 -05:00
Henrik Lissner
61b7451b52
config/literate: always tangle asynchronously
Should also fix errors during tangling while running `bin/doom`
commands.
2019-07-29 03:18:38 +02:00
Henrik Lissner
3e357c2e88
Return real version string from fake org-release fn 2019-07-27 02:46:50 +02:00
Henrik Lissner
8931718e8a
config/literate: fix org-version errors 2019-07-23 17:56:37 +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
7eb479e3f7
config/literate: set config.el as default target 2019-03-29 03:40:56 -04:00
Henrik Lissner
132ad7d391
Half-revert 92e604d0
+ Fixes config.org buffer being killed when tangled
+ Tangle files in same session if ob-tangle is loaded (and in
  noninteractive sessions). i.e. only tangle quietly when starting up
  interactive Emacs.
2019-03-28 16:20:25 -04:00
Henrik Lissner
92e604d0dc
config/literate: don't tangle file in this session
org-babel-tangle-file has reportedly killed config.org buffers, despite
them being visited. Since we're not doing anything with the return
value, may as well keep it in a separate process.
2019-03-28 14:32:16 -04:00
Henrik Lissner
5cdc2127be
Refactor config/literate module
+ Now recompiles literate config if you modify org files in DOOMDIR
+ Replaced +literate/compile with +literate/reload
+ Calls org-babel-tangle-file directly if org package is loaded
+ Change mtime check mechanism for literate tangling at startup
2019-03-28 01:59:25 -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
Henrik Lissner
0ec4d6ee43
config/literate: earlier check & no byte-compile
Making the compile check happen earlier fixes an edge case where the
resulting files from a literate config being tangled into multiple files
aren't recognized by Doom's package management or autoload generation
systems.

Disabling byte-compiling fixes an all too common issue where packages
and macros are undefined at compile time, causing a plethora of invalid
function errors.

Leave byte-compilation to `bin/doom compile`!
2018-06-10 17:28:17 +02:00
Henrik Lissner
21779f66ad
config/literate: remove compile-on-save hooks
Too volatile and slow.
2018-06-05 16:35:16 +02:00
Henrik Lissner
3245c365d7
config/literate: log compilation 2018-06-05 16:14:38 +02:00
Henrik Lissner
47efd56fd4
compile/literate: refactor & recompile on save
And add autoloaded commands. This may need work to ensure you don't
spawn multiple instances of Emacs all vying to compile the same file.
2018-06-05 16:09:03 +02:00
Henrik Lissner
f5fe36af23
Add :config literate module
It will tangle and byte-compile a config.org in your private config.
Doom will then load the resulting config.elc later.

Org is only loaded when updating this file.
2018-06-05 15:56:37 +02:00