Commit graph

621 commits

Author SHA1 Message Date
Patrick Elliott
623195e312
Checkboxes -> TODOs 2018-10-11 10:41:39 +02:00
Patrick Elliott
251e9c0244
When :tools pdf is enabled, open org links to pdfs with pdf-view-mode 2018-10-10 22:00:30 +02:00
Patrick Elliott
b59a27a160
Built-in capture templates add a link to the file from where capture was initiated 2018-10-10 17:36:25 +02:00
Henrik Lissner
cdf745e72a
map!: remove buffer-local :desc properties
which-key labels are registered globally, and will not work for
buffer-local keybinds. Until general is brought in, we'll have to suffer
label-less localleader keybinds.
2018-10-07 21:34:24 -04:00
Henrik Lissner
f416e28857
lang/org: refactor default org-todo-keyword-faces
To ensure consistency
2018-10-06 20:57:43 -04:00
Edwin Török
649b0795de fix org/config typo
In toplevel form:
../modules/lang/org/config.el:380:1:Warning: Unused lexical variable
    ‘seperator’

Signed-off-by: Edwin Török <edwin@etorok.net>
2018-10-04 00:38:05 +01:00
Henrik Lissner
05160a6526
lang/org: default org-agenda-files to org-directory 2018-09-30 15:14:01 -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
15991b5639 Refactor quiet! to be less destructive
It's possible for the debugger to be invoked from inside code wrapped in
a (quiet! ...) call. The debugger pauses Emacs in a broken state where
the functions locally rebound by quiet! (e.g. message, load-file,
write-region, etc) are never returned to their original definitions.

This attempts to reduce that probabilityby changing how quiet! silences
code. Rather than silencing them completely, they will be logged
to *Messages* but not displayed in the echo area.

Also, quiet! is now used less, where it isn't strictly needed (or where
inhibit-message is sufficient).
2018-09-28 21:13:27 -04:00
Henrik Lissner
078e3028a6 Minor, general comment revision 2018-09-28 21:02:59 -04:00
Henrik Lissner
01dde97776
lang/org: tweak org-todo-keywords{,-faces} 2018-09-26 20:44:54 -04:00
Henrik Lissner
736bdeb205
lang/org: fix variable font-size for agenda paths
When you hover your cursor over agenda items, the path to that headline
is displayed in the minibuffer. If org-level-N have unusual :height
values, they'll cause the minibuffer to grow.

This removes any variable font sizes from this display.
2018-09-22 01:37:47 -04:00
Henrik Lissner
9726a982d1
lang/org: revise org-modules & revise load order
Improves the startup performance of org-mode by disabling modules I
don't think are commonly used (it's easy to add back however).
2018-09-21 22:42:26 -04:00
Henrik Lissner
ed1775b42d
lang/org: refactor +babel/ipython library
+ Conform ipython advice and helpers to naming conventions.
+ Refactor out dash.el usage
2018-09-21 22:38:21 -04:00
Henrik Lissner
77255a63e0
lang/org: refactor & expand org-capture-templates
+ Adds three new default org-capture templates, for todo, notes and
  changelogs. It will use the first {todo,notes,changelog}.org file
  found up the file heirarchy from the current file, or will use
  {project-root}/X.org.
+ Variables in org-capture-templates are now resolved relative to
  org-directory, if they aren't absolute.
+ Display target file in org capture window header-line.

Mentioned in #886.
2018-09-19 23:30:00 -04:00
Henrik Lissner
5ef94de541 Minor refactor, reformat & comment revision 2018-09-18 21:39:54 -04:00
Henrik Lissner
80e8ccec1c Alias +org-default-notes-file to org-default-notes-file 2018-09-18 15:19:50 -04:00
Henrik Lissner
b7be38b2a9
New incremental lazy-loading at startup
This is for loading large packages (like org and magit) quietly in the
background during idle time. It is already set up to incrementally load
org and magit.

This is still experimental, however. the idle timers may need to be
tweaked.
2018-09-18 11:42:35 -04:00
Edwin Török
6eb95c98ea Fix bin/doom -d compile: org-attach-directory not defined 2018-09-12 22:55:13 +01:00
Henrik Lissner
90f0765cfb
lang/org: set default for org-refile-targets
So org-refile can see your agenda files and files adjacent to the
current one.
2018-09-09 09:58:22 -04:00
Henrik Lissner
95fa12390d
lang/org: fix unfontified remote links 2018-09-09 09:58:21 -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
8dd33678bc
Merge pull request #842 from myme/org-cal-nav
lang/org: Add evil-friendly calendar navigation
2018-08-31 03:35:11 +02:00
Henrik Lissner
0cf9d1f2f2
Minor refactor & revision across the board 2018-08-31 02:53:50 +02:00
Henrik Lissner
d24fce1dcd
Fix void-variable org-capture-is-refiling error
In case org-capture.el isn't loaded when org-refile is used.
2018-08-29 16:45:09 +02:00
Martin Øinæs Myrseth
a4250afb49 lang/org: Add evil-friendly calendar navigation 2018-08-27 23:55:22 +02:00
Henrik Lissner
64a88385cb
lang/org: make shiftab respect org-cycle-separator-lines #800 2018-08-21 02:56:54 +02:00
Henrik Lissner
aa9b0a8b94
lang/org: set org-cycle-separator-lines to default
Relevant to #800
2018-08-21 02:56:54 +02:00
Henrik Lissner
7c82cb6002
org-capture: remove window-system frame parameter
Hopefully, `make-frame` can figure out which window-system to use.
2018-08-16 12:32:13 +02:00
Henrik Lissner
5663778e36
Make TAB respect org-cycle-separator-lines #800
outline-toggle-children and org-cycle-hide-drawers didn't respect
org-cycle-separator-lines.
2018-08-13 21:47:55 +02:00
Henrik Lissner
cd280e0fa9
Load ox-pandoc conditionally
This allows users to disable it
2018-08-11 22:56:31 +02:00
Henrik Lissner
60f6418db2
lang/org: Rename +org-capture-window-params
These are frame parameters; it is incorrect to call them window
parameters.
2018-08-08 23:37:29 +02:00
Henrik Lissner
e30ca73dc4
Autoload +org-capture-window-params 2018-08-08 20:44:03 +02:00
Henrik Lissner
9d74ede286
lang/org: remove second org-src popup rule
And rearrange ipython rules
2018-08-08 18:02:20 +02:00
Henrik Lissner
44472d3ee8
lang/org: use unicode separator for eldoc 2018-08-04 18:24:54 +02:00
Henrik Lissner
d504c4bafe
lang/org: respect inherited foreground in eldoc 2018-08-04 18:23:53 +02:00
Henrik Lissner
b846a40af4
Remove unused letvar, spec 2018-07-30 23:03:34 +02:00
Henrik Lissner
cbc59f9333
Appease the byte-compiler 2018-07-30 12:10:11 +02:00
Henrik Lissner
c935f3e4da
lang/org: fix backtab not outdenting items/headers 2018-07-30 04:06:00 +02:00
Henrik Lissner
824abaf2e6
lang/org: alphabetize babel plugins 2018-07-30 03:53:52 +02:00
Henrik Lissner
16e9957c1a
Don't install/track org from ELPA
Prevents duplicate installs of org.
2018-07-30 03:49:12 +02:00
Henrik Lissner
66056e7a5d
Move ob-racket to lang/org & cleanup
+ Remove redundant ob-crystal block
+ Move ob-ipython into separate section
+ Move ob-racket from lang/racket
2018-07-29 19:31:32 +02:00
Henrik Lissner
35e5a47e9f
Rewrote indentation detection
More robust and easier to customize.
2018-07-29 19:31:32 +02:00
Henrik Lissner
ebd3b0223e
Fix followed org links not recentering correctly
Links like `file:test.cpp::45` would open file.cpp, but end up somewhere
else than line 45. Same with links like `file:test.cpp::int main()`.
2018-07-24 20:01:42 +02:00
Henrik Lissner
6b06cd32ac
Add :autosave t :ttl nil to Org src popups
Suggested by @fuxialexander
2018-07-22 17:38:24 +02:00
Henrik Lissner
41cf970c75
Autosave org capture popups
Prevents unsaved confirmation prompts when the org-capture popup is
closed.
2018-07-21 01:00:11 +02:00
Henrik Lissner
bd2b30400d
Merge pull request #750 from HaoZeke/oxPandocReveal
org: Update +export to generate revealjs stuff
2018-07-17 02:07:12 +02:00
Henrik Lissner
ec5673bb8a
Merge pull request #751 from HaoZeke/updateOxReveal
org: Update revealJS url
2018-07-15 00:03:01 +02:00
Henrik Lissner
e7b252f442
TAB should respect org-cycle-open-archived-trees
And shouldn't cycle visibility of archived trees by default.
2018-07-12 20:39:39 +02:00
HaoZeke
03cb076fd6
org: Update revealJS url
This grabs all minor versions upto 4.xx
2018-07-11 19:15:24 +05:30