Commit Graph

536 Commits

Author SHA1 Message Date
Henrik Lissner
bef3457232 Remove redundant or invalid settings from org module
These have either been removed upstream or already match their defaults.
2020-05-02 22:47:26 -04:00
Henrik Lissner
5a54ef1f9f Fix org-crypt not running when saving org files 2020-05-02 17:52:22 -04:00
Henrik Lissner
1152b2c7bc Default org-crypt to epa-file-encrypt-to 2020-04-30 14:37:06 -04:00
Henrik Lissner
d12752324a Introduce letf! convenience macro
A more succinct cl-letf, which allows for local functions and macros.
2020-04-29 23:48:21 -04:00
Henrik Lissner
f28a972861 Disable org-highlight-latex-and-related
It is far too slow to enable by default.

Fixes #2998
2020-04-29 02:42:45 -04:00
Henrik Lissner
0e50db55a0 Fix #2972: infinite recursion in org + python src blocks 2020-04-28 18:43:15 -04:00
Henrik Lissner
82f9dc2566 Fix #2972: infinite recursion in org src blocks 2020-04-27 17:43:29 -04:00
Henrik Lissner
3e67f8f801 Fix C-{S,M}-RET in tty Emacs 2020-04-27 17:30:23 -04:00
Henrik Lissner
6cb1390fac Fix #2968: refactor how org-directory default is set 2020-04-25 15:43:05 -04:00
Henrik Lissner
8c1525e3d8 Rewrite org-download/attach systems
+ Cut down on unnecessary code & advice
+ Fix 'attach and 'download methods for org-download so that a) their
  links actually work and b) inline previews of their links show up.
+ Allow users to only set org-attach-id-dir (which will be mirrored to
  org-download-image-dir, unless the user has changed it).
+ Prevent a few edge cases where org-attach-id-dir or
  org-download-image-dir were blank.
2020-04-25 01:27:25 -04:00
Henrik Lissner
6159068b4d Rewrite custom org link types
This should fix a few issues with links (like org-download links)
resolving to the incorrect org-directory or org-id-attach-dir (because
it's resolved too early).

I've also simplified and refactored the API to make it easier to grok.
2020-04-24 20:41:56 -04:00
Henrik Lissner
e8cd7b5404 Add SPC m {#,*,+} org keybinds 2020-04-24 02:08:09 -04:00
Henrik Lissner
b40d85e9b2 Make SPC m c (clock) keybinds mnemonic + more clock keybinds 2020-04-24 02:06:41 -04:00
Henrik Lissner
42fd3d0cb6 Move org deadline/schedule keys under SPC m d 2020-04-24 02:06:11 -04:00
Henrik Lissner
a7b31eab21 Add org table keybinds under SPC m b 2020-04-24 02:06:11 -04:00
Henrik Lissner
a308f1a914 Bind SPC m l t -> org-toggle-link-display 2020-04-24 02:06:03 -04:00
Henrik Lissner
b82068cdcc +org-open-old-pdf-links-fn -> +org-open-legacy-pdf-links-fn
Clearer name and added a docstring to explain its purpose.
2020-04-17 22:45:16 -04:00
Henrik Lissner
f47de2064c Remove redundant org-pdftools-store-link hook
This is already covered by the :store handler set with
org-link-set-parameters.
2020-04-17 22:42:05 -04:00
Henrik Lissner
763932a55c Merge pull request #2884 from brianmcgillion/biblio
Add org-noter package
2020-04-17 19:16:06 -04:00
Henrik Lissner
2a8926ec33 Add HOLD org todo keyword
WAIT = for tasks waiting on other people or external forces
HOLD = for tasks waiting on you
2020-04-17 15:47:04 -04:00
Henrik Lissner
5502013906 Bump :lang org
fuxialexander/org-pdftools@4156b67 -> fuxialexander/org-pdftools@67964a5
integral-dw/org-superstar-mode@4897c33 -> integral-dw/org-superstar-mode@09ddc28
jethrokuan/org-roam@e33c144 -> jethrokuan/org-roam@6175739
magit/orgit@0242088 -> magit/orgit@7d6afa5
2020-04-17 15:47:04 -04:00
Brian McGillion
2dd84b8e2f Add org-noter package
This package allows the creation of notes on a document (pdf, EPub,
etc.) which will be kept in sync with the document. Providing context
sensitive annotations that are managed in plaintext.
2020-04-17 16:39:51 +04:00
Alois Janíček
e89dc0ecaf Autoload all 4 org decrypt/encrypt user commands
currently if someone wants to use them, it has to manually autoload
them first in user config.el with (unless (fboundp ...) (autoload ...))
2020-04-17 12:08:08 +02:00
Henrik Lissner
ab025caced Fix legacy pdf(view|tools) links & storing pdf links 2020-04-16 19:10:28 -04:00
Henrik Lissner
ccec354739 Prevent infinite recursion opening legacy pdf links 2020-04-16 18:28:14 -04:00
Henrik Lissner
3efef6e38f Fix void-variable link when opening legacy pdf links 2020-04-16 14:52:06 -04:00
Henrik Lissner
fcb2612d3a Fix wrong-number-of-arguments error when opening org links 2020-04-16 12:59:40 -04:00
Henrik Lissner
582fb285bc Fix pdf(view|tools)?: org links
org-pdftools now uses a more generic "pdf:*" for its links, so that
users don't have to worry about the backend.

Also, pdf(view|tools) links should now work for backward compatibility.
2020-04-15 23:46:58 -04:00
Henrik Lissner
5c4f3c62a7 Replace org-bullets w/ org-superstar
org-superstar is a little faster, better written and still maintained.
It also has a few more features which I've made opt-in because they are
relatively expensive in larger buffers.

Folks that don't care for the differences just have to replace
`org-bullets-bullet-list` in their configs with
`org-superstar-headline-bullets-list`.
2020-04-14 18:00:43 -04:00
Henrik Lissner
169fe6a7f4 lang/org: revise docstrings 2020-04-14 15:37:00 -04:00
Henrik Lissner
10a6b510d7 Fix background of latex segments in org buffers
'auto doesn't seem to work correctly, especially where face-remap is
involved (e.g. with solaire-mode or auto-dim-other-buffers).
2020-04-14 15:34:20 -04:00
Henrik Lissner
9abc10c78f Replace org-pdfview with org-pdftools
The latter is a continuation fork. The former is no longer maintained.
2020-04-14 15:31:39 -04:00
Henrik Lissner
83a95925dd Lazy load babel libraries for org exporting 2020-04-14 01:29:27 -04:00
Henrik Lissner
41606f5369 Only realign tables in +org-realign-table-maybe-h
Don't recalculate formulas.
2020-04-13 15:23:16 -04:00
Henrik Lissner
006eee75d0 Add popup rule for *Org-Babel...* buffers
Mainly error messages when executing babel blocks.
2020-04-13 14:18:22 -04:00
Henrik Lissner
24e35b95d5 Move org lang alias to markdown module 2020-04-10 02:04:00 -04:00
Henrik Lissner
b78fc4eb76 Minor refactor & reformatting across the board 2020-04-08 15:30:10 -04:00
Henrik Lissner
2957f5ff28 lang/org: move submodule hooks to back of org hooks
So they have an opportunity to override defaults.
2020-04-08 15:30:10 -04:00
Henrik Lissner
73f89fd907 Fix #2848: unset org-agenda-inhibit-startup 2020-04-08 15:30:09 -04:00
Henrik Lissner
6d81f9b5f4 Merge pull request #2803 from jsravn/fix-inconsistent-uuidgen
Make uuidgen consistent for org-id-new
2020-04-07 17:38:27 -04:00
Henrik Lissner
3ad5665e77 Merge pull request #2822 from UndeadKernel/fix-org_pretty_code
lang/org: pretty symbols for the old and new word case style
2020-04-07 17:33:47 -04:00
James Ravn
dd94bd67ac Use filter-return for downcase of uuidgen 2020-04-07 10:22:05 +01:00
Henrik Lissner
f8090fd09b Disable smartparens rules for org-mode
They're more troublesome than helpful, but we still want brace
autopairing, so leave smartparens-mode on.
2020-04-05 19:03:26 -04:00
Henrik Lissner
2ceac53421 Prevent scrolling on magit refresh & toc-org 2020-04-04 01:27:41 -04:00
Undead Kernel
d87edaa44d lang/org: pretty symbols for old and new style
org-mode recently changed the standard for naming blocks.
Previously, it would use capitalized names; now it uses lower case
names.

E.g., #+BEGIN_SRC -> #+begin_src

Also, add a "quote" symbol for the #+begin_quote block.
2020-04-03 12:01:34 +02:00
James Ravn
f7fa3f3a86 Make uuidgen consistent for org-id-new
On macos/bsd systems, uuidgen produces all uppercase output. On
Linux/GNU systems it produces all lowercase output. This leads to
problems when managing org files across both systems (see e.g.
https://lists.gnu.org/archive/html/emacs-orgmode/2019-07/msg00081.html).

This change adds a defadvice for `org-id-new` to always lowercase the
output of `uuidgen` so the behavior is consistent across platforms.
2020-03-31 12:33:16 +01:00
Henrik Lissner
a52cb71636 Merge pull request #2631 from karlicoss/fix-babel-python
Set org-babel-python-command to be same as python-shell-interpreter
2020-03-29 19:02:58 -04:00
Henrik Lissner
f28a304abd Add +roam submodule to lang/org
Closes #2764, #2759
2020-03-29 19:02:09 -04:00
Henrik Lissner
296cbff097 General, minor refactor & reformatting 2020-03-27 18:06:42 -04:00
Henrik Lissner
169f9a6121 General, minor refactor & reformatting 2020-03-27 01:25:30 -04:00