Commit graph

495 commits

Author SHA1 Message Date
Henrik Lissner
7081d833f6
Move :ui pretty-code to :ui ligatures
Includes a major refactor of the module.
2020-08-20 02:14:32 -04:00
t-e-r-m
2c25ffab54 Add org-toggle-checkbox binding (SPC m x) 2020-08-19 17:42:11 +05:30
Henrik Lissner
ff90fc82e6
Normalize keymaps on evil-org-mode
Fixes an issue where evil keybinds aren't in effect on just after
activating org-mode.
2020-08-14 13:35:02 -04:00
Henrik Lissner
3173b39b58
lang/org: different bullets for nested plain lists 2020-08-09 01:50:41 -04:00
Henrik Lissner
5a80db875c
lang/org: add lookup handlers for src blocks
- Fixes: `set-lookup-handlers!` couldn't define :definition or
  :references handlers in text-mode derivatives.
- Adds: support for evaluating code in jupyter blocks (#2477).
2020-08-06 00:23:09 -04:00
Henrik Lissner
3b159dda0a
lang/org: add code-completion in src blocks
company-capf for src blocks and company-dabbrev for everything else.

Relevant to #2477
2020-08-06 00:22:40 -04:00
Henrik Lissner
68136f7ff9
lang/org: add +pretty flag; move org-superstar
org-superstar is no longer enabled by default, due to unicode-related
crashes and general slowness betraying our "gotta go fast" mantra.
2020-08-05 18:31:01 -04:00
Henrik Lissner
8ae0e79918
lang/org: add eval handler
With this, gr and gR will now work in babel blocks to execute a subset
of the block (or the whole thing, if you'd like). Results are displayed
in a popup buffer (or overlay if :tools (eval +overlay) is enabled).
2020-08-05 18:26:07 -04:00
Henrik Lissner
80e1e8ff9a
lang/org: refactor & reformatting 2020-08-05 18:26:07 -04:00
Henrik Lissner
68c15ef4ae
lang/org: tie auto-indent on RET to electric-indent
Gives the user a venue for disabling indentation behavior.
2020-08-05 18:26:06 -04:00
Henrik Lissner
863eb82efd
S-RET -> insert literal newline
A convention on many text editors and applications is to make RET
auto-indent new lines. That has already been done. Another convention is
for S-RET to insert an unindented line; this commit adds this convention
to Doom.

Relevant to #3694
2020-08-05 18:26:06 -04:00
Henrik Lissner
434f107099
lang/org: org-latex-prefer-user-labels = t 2020-07-31 15:58:09 -04:00
Henrik Lissner
d6fb7d8ac6
lang/org: fix mode restart in buried agenda buffers
Would formerly only apply when persp-mode was active, but this has
nothing to do with persp-mode, specifically.
2020-07-31 15:57:59 -04:00
Henrik Lissner
ff18b1329e
Fix #3660: inhibit expensive mode hooks in src blocks
Speeds up native indentation on RET or TAB in org src blocks.

Also, only reindent natively on RET if org-src-tab-acts-natively is
non-nil.
2020-07-31 15:42:27 -04:00
Henrik Lissner
a54d2b3804
lang/org: optimize org-agenda #2672 2020-07-31 01:34:56 -04:00
Henrik Lissner
c7ceed8be7
lang/org: set 3 new defaults
org-fontify-done-headline
org-imenu-depth
org-agenda-deadline-faces
2020-07-31 01:34:24 -04:00
Henrik Lissner
cacc9d2e9b
lang/org: org-list-allow-alphabetical = t 2020-07-26 16:17:07 -04:00
Henrik Lissner
a5c509afff
lang/org: org-catch-invisible-edits = 'smart 2020-07-26 16:17:07 -04:00
Henrik Lissner
629c7bed8e
Rename λ! (deprecated) -> cmd! 2020-07-26 15:56:51 -04:00
Henrik Lissner
12e414be89
Rename +org/toggle-clock -> +org/toggle-last-clock
And rewrite it to ask for confirmation before clocking in on the item at
point. Without this, it's much harder to see what exactly it's doing.
2020-07-26 15:55:11 -04:00
Henrik Lissner
da1030985d
Minor refactors & reformatting 2020-07-23 01:26:03 -04:00
Marty Buchaus
950740d7a5 add publish keybinding 2020-07-20 09:13:27 -05:00
Henrik Lissner
2261bd5819
Fix #3578: wrong-type-arg error on empty org heading
Due to non-string in list while iterating over org heading breadcrumbs.

Closes #3579
2020-07-17 19:40:18 -04:00
Henrik Lissner
6b781c55c2
Make org-yt respect org-display-remote-inline-images 2020-06-28 01:17:53 -04:00
Henrik Lissner
25b240b9b0
Respect org-display-remote-inline-images
Don't download inline previews of URLs if
org-display-remote-inline-images is set to 'skip (its default).
2020-06-28 01:09:54 -04:00
Raj Krishnan
c081e9dc20 Add custom link for wikipedia 2020-06-12 20:08:24 +05:30
Henrik Lissner
59b60a4708
Inhibit recenter following org link when window isn't visible 2020-06-06 00:56:46 -04:00
Henrik Lissner
3e3f35a67d
Only recenter following a file or internal org link
Rather than browser or external links.
2020-06-05 03:21:32 -04:00
Henrik Lissner
d5d0fb95e2
Fix #3175: inhibit save hooks on org-export-to-file 2020-06-04 23:48:16 -04:00
Henrik Lissner
8bf902d5f4
General refactors & reformatting across the board 2020-06-04 20:13:28 -04:00
Henrik Lissner
af91af01fa
Merge pull request #3213 from wedens/org-capture-frame-refile
Prevent doom-capture frame from closing when refiling
2020-06-04 19:50:12 -04:00
Henrik Lissner
fddbbb08c4
Bump :lang org
Kungsgeten/org-brain@3ce2a33 -> Kungsgeten/org-brain@c9c6995
abo-abo/org-download@8e12cf0 -> abo-abo/org-download@40c8a1d
bastibe/org-journal@a3ff9ce -> bastibe/org-journal@0bcefa5
emacs-straight/org-mode@5454312 -> emacs-straight/org-mode@2ab68c7
kaushalmodi/ox-hugo@01bc315 -> kaushalmodi/ox-hugo@94aec3f
org-roam/org-roam@ea6bd21 -> org-roam/org-roam@b2594b8
takaxp/org-tree-slide@7bf09a0 -> takaxp/org-tree-slide@80cb1ac

Highlights:
- bzg/org-mode@47b6534 fixes org-babel-js-function-wrapper, so my fix is
  no longer needed.
- bastibe/org-journal@e1003e3 fixes org-journal failing to detect
  symlinked journal files, so my fix is no longer needed.
- org-roam/org-roam#700 fixes symlinks in org-roam-directory
2020-06-02 19:52:42 -04:00
Antoine Martin
0af3f47b9a New bindings deadline/schedule in org-agenda
Following 42fd3d0
2020-05-26 22:11:58 +02:00
Antoine Martin
1434685a7d Restore new org-agenda clock bindings
These were reverted during the rebase in #3043.
2020-05-26 22:08:11 +02:00
Marty Buchaus
ef9d9a89d0
Add Tree Subtree function to bindings (#3043) 2020-05-24 22:54:37 -04:00
wedens
66c4317fa2 prevent doom-capture frame from closing when refiling 2020-05-24 23:29:35 +07:00
Henrik Lissner
7183194a59
Remove redundant org-id-track-globally setting
This is already set to t upstream.
2020-05-20 01:07:52 -04:00
Henrik Lissner
090d0f7d53
Run org-load-hook functions on doom/reload 2020-05-20 01:07:32 -04:00
Henrik Lissner
8b8e7537b7
Move org-attach config to +org-init-attachments-h 2020-05-20 01:07:18 -04:00
brotzeit
d8d16d22bc add rust to +org-babel-mode-alist 2020-05-17 21:28:31 +02:00
Henrik Lissner
e3ca1d52ad
Bump :lang org
bastibe/org-journal@8bf06b2 -> bastibe/org-journal@2c43b10
emacs-straight/org-mode@20c1322 -> emacs-straight/org-mode@93c50e3
oer/org-re-reveal@61549f4 -> oer/org-re-reveal@a9e9d4e
org-roam/company-org-roam@3da3821 -> org-roam/company-org-roam@674c2bd
org-roam/org-roam@ad5fca5 -> org-roam/org-roam@1267a43

Fixes #3123
2020-05-16 05:13:46 -04:00
Henrik Lissner
ea18c83c0a
General refactors & reformatting across the board 2020-05-15 01:44:53 -04:00
Henrik Lissner
0e851ace9b
Backport bits of CLI rewrite
The rewrite for Doom's CLI is taking a while, so I've backported a few
important changes in order to ease the transition and fix a couple bugs
sooner.

Fixes #2802, #2737, #2386

The big highlights are:

- Fix #2802: We now update recipe repos *before* updating/installing any
  new packages. No more "Could not find package X in recipe repositories".

- Fix #2737: An edge case where straight couldn't reach a pinned
  commit (particularly with agda).

- Doom is now smarter about what option it recommends when straight
  prompts you to make a choice.

- Introduces a new init path for Doom. The old way:
  - Launch in "minimal" CLI mode in non-interactive sessions
  - Launch a "full" interactive mode otherwise.
  The new way
  - Launch in "minimal" CLI mode *only* for bin/doom
  - Launch is a simple mode for non-interactive sessions that still need
    access to your interactive config (like async org export/babel).
  - Launch a "full" interactive mode otherwise.

  This should fix compatibility issues with plugins that use the
  async.el library or spawn child Emacs processes to fake
  parallelization (like org's async export and babel functionality).

- Your private init.el is now loaded more reliably when running any
  bin/doom command. This gives you an opportunity to configure its
  settings.

- Added doom-first-{input,buffer,file}-hook hooks, which we use to queue
  deferred activation of a number of packages. Users can remove these
  modes from these hooks; altogether preventing them from loading,
  rather than waiting for them to load to then disable them,
  e.g. (after! smartparens (smartparens-global-mode -1)) -> (remove-hook
  'doom-first-buffer #'smartparens-global-mode)

  Hooks added to doom-first-*-hook variables will be removed once they
  run.

  This should also indirectly fix #2386, by preventing interactive modes
  from running in non-interactive session.

- Added `doom/bump-*` commands to make bumping modules and packages
  easier, and `doom/bumpify-*` commands for converting package!
  statements into user/repo@sha1hash format for bump commits.

- straight.el is now commit-pinned, like all other packages. We also
  more reliably install straight.el by cloning it ourselves, rather than
  relying on its bootstrap.el.

  This should prevent infinite "straight has diverged from master"
  prompts whenever we change branches (though, you might have to put up
  with it one more after this update -- see #2937 for workaround).

All the other minor changes:

- Moved core/autoload/cli.el to core/autoload/process.el
- The package manager will log attempts to check out pinned commits
- If package state is incomplete while rebuilding packages, emit a
  simpler error message instead of an obscure one!
- Added -u switch to 'doom sync' to make it run 'doom update' afterwards
- Added -p switch to 'doom sync' to make it run 'doom purge' afterwards
- Replace doom-modules function with doom-modules-list
- The `with-plist!` macro was removed, since `cl-destructuring-bind`
  already serves that purpose well enough.
- core/autoload/packages.el was moved into core-packages.el
- bin/doom will no longer die if DOOMDIR or DOOMLOCALDIR don't have a
  trailing slash
- Introduces doom-debug-variables; a list of variables to toggle on
  doom/toggle-debug-mode.
- The sandbox has been updated to reflect the above changes, also:
  1. Child instances will no longer inherit the process environment of
     the host instance,
  2. It will no longer produce an auto-save-list directory in ~/.emacs.d
2020-05-15 01:33:52 -04:00
Henrik Lissner
043a561565
Fix #3123: wrong-type-arg stringp error from org-encrypt-string
Due to upstream issue (read comments).
2020-05-14 15:42:13 -04:00
Henrik Lissner
558ea08411
Disable slow smartparens-org defaults in org-mode
But keep its base defaults.

Relevant to #452
2020-05-13 22:48:42 -04:00
Henrik Lissner
a10c157d87
Fix zr, zm, zR & zM vimmish folding in org-mode
Fixes the following keybinds for evil users:

z r        open next level of headings buffer-wide
z m        close next level of headings buffer-wide
z R        open all folded headings
z M        close all folded headings
[N] z R    open all headings at level N and above
[N] z M    close all headings at level N and below
2020-05-13 19:31:09 -04:00
Henrik Lissner
7bbb52f17c
No longer disable org-highlight-sparse-tree-matches
The original issue it was meant to fix no longer occurs in recent
versions of org.
2020-05-13 16:06:25 -04:00
Henrik Lissner
717d53c666
Tweak GC settings, particularly for org & lsp
These two modes are particularly expensive. This needs more
testing.
2020-05-12 19:59:14 -04:00
Henrik Lissner
bc5bbb1770
Fix #3102: move org-habit init back into hook 2020-05-12 05:15:55 -04:00
Henrik Lissner
7cf2109b1a
Don't error on missing org contrib feature 2020-05-11 04:53:39 -04:00