Commit Graph

112 Commits

Author SHA1 Message Date
5472cd4a37 lang/org: set org-clock variables sooner 2018-05-25 00:51:35 +02:00
fd87a0bd9e lang/org: add ]h/[h keybinds; correct bind motion keys to motion map 2018-05-25 00:51:15 +02:00
09cb4f6716 Major refactor & optimization of how modules load their packages
Now that we are loading package autoloads files (as part of the
generated doom-package-autoload-file when running make autoloads), many
:commands properties are redundant. In fact, many def-package! blocks
are redundant.

In some cases, we can do without a config.el file entirely, and can move
into the autoloads file or rely entirely on package autoloads.

Also, many settings have been moved in their module's autoloads files,
which makes them available ASAP; their use no longer depends on module
load order.

This gained me a modest ~10% boost in startup speed.
2018-05-25 00:46:16 +02:00
7db7aed52d lang/org: refactor & add org-clock config/keybinds 2018-05-18 01:43:37 +02:00
022baf808c lang/org: use evil-org-key-theme variable to initialize evil-org
Gives people a chance to customize which evil-org key themes are
available to them.

Addresses #591
2018-05-17 11:10:46 +02:00
9a2c4f297c Fix void macro errors after byte-compiling 2018-05-15 03:24:30 +02:00
bb88411cc9 General minor refactor & docstring fixes 2018-05-14 20:55:55 +02:00
48cb10a9cc lang/org: fix void-function +org|setup-ui error
Caused if org is loaded early in your config, before :lang org is
loaded. Or when byte-compiling.
2018-05-14 20:49:45 +02:00
daf4c93e36 lang/org: unbind [/] (interfering w/ default binds) 2018-05-14 13:05:03 +02:00
b6e2599358 lang/org: change recentf/persp clobbering fix 2018-05-14 13:05:03 +02:00
9e141cd01b lang/org: fix newline-and-indent behavior in src blocks 2018-05-08 15:36:42 +02:00
d7889e69b3 lang/org: unbind C-j/C-k (restoring window movement keys) 2018-05-07 19:30:24 +02:00
c8b3c5c493 lang/org: don't insert a second * at BOL 2018-05-07 19:30:09 +02:00
7173e6abcd lang/org: fix TAB in insert mode not indenting 2018-04-29 00:46:45 -04:00
bc91c55acc lang/org: augment org-cycle, rather than replace it
This removes +org/toggle-fold in favor of a more compatible alternative:
a org-tab-first-hook function that forces org-cycle only to toggle the
current subtree, and not cycle through all visibility states.
2018-04-04 06:56:59 -04:00
21da187361 lang/org: fix forward/backward motion keys 2018-03-31 18:06:38 -04:00
28f221ed9c lang/org: fix backtab (rebound by evil-collection-org) 2018-03-25 17:19:22 -04:00
0dd2df5a86 lang/org: doom-init-theme-hook => doom-load-theme-hook 2018-03-22 19:56:53 -04:00
fbb16b4c5e lang/org: fix ^/0 motion keys
^ = now goes to the beginning of current visual line
0 = goes to the true beginning of the line
2018-03-22 14:54:59 -04:00
85e443cca1 lang/org: minor refactor of +org|remove-occur-highlights ESC hook 2018-03-18 02:38:41 -04:00
efdcb01c19 lang/org: change default +org-dir to ~/org 2018-03-14 18:49:26 -04:00
8d11682e99 lang/org: make doom/delete-backward-char respect tables #457
With or without evil.
2018-03-12 17:09:36 -04:00
88d3e91ee4 lang/org: highlight broken file: links with error face 2018-03-12 13:32:01 -04:00
62025c8107 lang/org: indent continued org-list lines more consistently
Before:

+ abcdefghi :: User can set *any* parameters of ivy-posframe with the help of
               `ivy-posframe-parameters'.
+ xyz :: When non-nil, ivy-posframe will ignore prompt. This variable is useful
         for `ivy-posframe-read-action'.

After

+ abcdefghi :: User can set *any* parameters of ivy-posframe with the help of
     `ivy-posframe-parameters'.
+ xyz :: When non-nil, ivy-posframe will ignore prompt. This variable is useful
     for `ivy-posframe-read-action'.
2018-03-12 13:32:01 -04:00
4f0dc72962 lang/org: fix smartparens autopairing in org-mode 2018-03-12 13:32:01 -04:00
d563d133ff lang/org: fix evil coupling #457
And use fix backspace not keeping tables aligned.
2018-03-12 13:32:00 -04:00
c595fe2eb8 lang/org: don't auto-kill agenda buffers #429
There is always doom/cleanup-session or :cleanup as an alternative.
2018-02-28 17:57:30 -05:00
7db767957e lang/org: fix C-a/C-e in org-mode 2018-02-19 20:24:57 -05:00
a01320deeb lang/org: redo evil integration; add evil-org package
lang/org has now adopted much of evil-org, which introduces better evil
integration for org-mode. More testing is required.
2018-02-18 00:32:12 -05:00
0c459cfefd lang/org: make backspace org-mode aware
This ensures backspace respects tables and doesn't break whitespace in
table cells.
2018-02-17 03:40:40 -05:00
2b1c323dbf 💥 Redesign private sub-module system
~/.doom.d/modules is now a full module tree, like ~/.emacs.d/modules.
Symlinks are no longer involved.

Private modules can now shadow Doom modules. e.g.
~/.doom.d/modules/lang/org will take precendence over
~/.emacs.d/modules/lang/org.

Also, made doom--*-load-path variables public (e.g. doom--site-load-path
=> doom-site-load-path), and rearranged the load-path for a 10-15%
startup boost.
2018-02-16 02:11:10 -05:00
d84af58f77 lang/org: refactor tab/backtab/ret keybinds to be less intrusive
Turns out the native TAB/Backtab/RET functionality in org already does
what I've replaced them with (somewhat).

Also, I discovered that the canonical way to modify TAB behavior was
through org-tab-first-hook. So, instead of replacing native
functionality, I've rewritten these keybinds to leverage them.
2018-02-13 18:12:40 -05:00
169cd809bc lang/org: add more org links & abbrevs
New org, doom, doom-module and doom-docs links, with completion and
non-existing file highlights.
2018-02-03 06:27:31 -05:00
7e21d66bf7 lang/org: fix opening file links 2018-02-03 06:10:32 -05:00
2d641bb059 lang/org: refresh ui settings when theme is changed 2018-02-02 20:47:33 -05:00
11e2e1b55e lang/org: toc-org-hrefify-default = org
gh-style links don't work in from within Emacs as well.
2018-02-02 20:47:33 -05:00
3dbf994871 lang/org: close agenda buffers after org-agenda
Experimental. Running org-agenda would leave leftover open buffers, this
hook cleans them up.
2018-01-08 20:42:43 -05:00
6853196017 lang/org: general refactor; split init into hooks
lang/org's initialization process is now split up into hooks on
org-load-hook. This approach is cleaner and easier to customize. I also
removed the escape binding in org-agenda-mode-map, as the popup system
makes it redundant.
2018-01-08 20:41:56 -05:00
82abc8647a lang/org: remove recursive require (not necessary anymore?) 2018-01-06 04:15:19 -05:00
185bf58c9e lang/org: add elpa org to load-path in init.el #327
Let's try to change the load-path sooner...
2018-01-06 04:02:05 -05:00
3cbddbfd88 Generalize +evil-esc-hook into doom-escape-hook
This lets vanilla Emacs users in on having a universal "escape" key.
2018-01-06 02:38:39 -05:00
55ad843a09 lang/org: fix byte-compiler using outdated, built-in org #327
During runtime, the new version of org (installed via ELPA) is added to
load-path, but this doesn't happen during compile-time. Wrap it in
eval-and-compile and that changes.
2018-01-05 13:43:13 -05:00
2598d48bba Add org elpa archive + update lang/org #327
Now that the org ELPA archive has https support, we can add it to
package-archives. This fixes some 'org is unavailable' errors when
installing org packages that have declared earlier versions of org as
a dependency.

This also makes installing a newer version of org-mode much simpler.
Woo!
2018-01-04 16:16:45 -05:00
db5910da3c lang/org: don't error out if +org-dir doesn't exist 2018-01-03 13:15:25 -05:00
dcfa05da11 lang/org: wrap smartparens config in after! 2018-01-01 16:17:02 -05:00
13111ff5c4 Set epa-{file-encrypt-to,pinentry-mode}; no authinfo for sudo via tramp 2017-12-27 20:48:06 -05:00
24dc5d4375 Disable show-paren-mode in org-mode
show-paren-mode causes flickering with indentation margins made by
org-indent-mode, so we simply turn off show-paren-mode altogether.
2017-12-16 12:45:19 -05:00
76a4ae459d Fix obsolete (when|if)-let messages in Emacs 26 2017-12-10 14:49:52 -05:00
cd7bd7628f lang/org: refactor org init process
after! org is more reliable than org-load-hook.
2017-12-09 14:42:46 -05:00
efdde6961e Fix over-aggressive smartparens in org-mode #285 2017-12-09 00:17:01 -05:00