Commit graph

573 commits

Author SHA1 Message Date
Henrik Lissner
de85f67b7c
lang/org: remove redundant attach: link abbreviation 2019-07-14 05:35:51 +02:00
Henrik Lissner
157cb5287e
lang/org: enable latex export backend by default #1560
ox.el doesn't eager-load these packages anyway.
2019-07-12 15:42:26 +02:00
Henrik Lissner
eb7d4bf0e8
lang/org: lazyload babel src highlighters packages
E.g. ob-*.el, if any
2019-07-10 19:30:56 +02:00
Henrik Lissner
92dd66f736
lang/org: refactor & reformat
To ensure that users' after! blocks have precendence over org packages
in sub-modules.
2019-07-08 22:08:59 +02:00
Henrik Lissner
e645185907
Set org-crypt vars sooner
In :init rather than :config, so users' (after! org-crypt ...) blocks
take precedence.
2019-07-08 21:17:04 +02:00
Henrik Lissner
d2991930ae
lang/org: minor refactor
- Set file variables sooner
- Change org-tags-exclude-from-inheritance additively, rather than
  destructively
2019-07-08 11:58:58 +02:00
Henrik Lissner
fbf58aac8c
lang/org: add +org|init-export to org-load-hook #1535 2019-07-03 16:37:48 +02:00
Henrik Lissner
768ed10dc3
lang/org (babel): sys.print -> console.log
Update ob-js's wrapper for js babel blocks. sys.print was deprecated and
removed in later versions of node.
2019-06-30 02:27:37 +02:00
Henrik Lissner
11bfb17894
lang/org: major refactor
The motivation for this change was to rethink lang/org's flags. Many of
its former flags represented non-features. Therefore, its flags have
been reduced to five: +dragndrop, +ipython, +pandoc, +gnuplot and
+present. Everything else is included as org-load-hooks and treated as
reasonable defaults.

Other changes:
- Fixes #1502: don't autopair certain pairs when in a math region
- Fixes #1483: broken localleader in org-agenda
- Adds gnuplot support #1108
- Doom's org submodules have been moved into lang/org/contrib/, because
  I expect there will be *many* more to come, and I don't want to
  pollute the moudle's root.
2019-06-28 17:28:28 +02:00
Henrik Lissner
67b6c44939
Enable show-trailing-whitespace globally
The variable is buffer-local and must be set with setq-default instead.

Also adds doom|{enable,disable}-show-trailing-whitespace hooks.
2019-05-17 01:58:08 -04:00
Henrik Lissner
d057d45ef2
lang/org: remove link markup in eldoc breadcrumbs 2019-05-15 16:42:45 -04:00
Alan Schmitt
77905d9815 fix command to set tags 2019-05-13 10:40:43 +02:00
Henrik Lissner
c4a9de5361
lang/org: add new toggle keybinds to localleader
Also sorts existing keybinds.
2019-05-12 01:46:29 -04:00
Alan Schmitt
ea50d0628f adding keybindings for set tags 2019-05-10 15:03:29 +02:00
Alan Schmitt
ec15b36665 moving to the setup-keybind function 2019-05-10 08:18:46 +02:00
Alan Schmitt
d1f017542f more keybindings 2019-05-10 08:18:46 +02:00
Alan Schmitt
9a2315a6cb adding some keybindings 2019-05-10 08:18:46 +02:00
Henrik Lissner
8e453462c7
lang/org: evil-org-retain-visual-state-on-shift = t 2019-04-26 17:43:45 -04:00
Henrik Lissner
a4c5396558
Add better-jumper
Replaces evil's jumplist; makes its functionality available for non evil
users.
2019-04-24 18:16:04 -04:00
Henrik Lissner
77e4cc4d58
💥 Remove :feature category
:feature was a "catch-all" category. Many of its modules fit better in
other categories, so they've been moved:

- feature/debugger -> tools/debugger
- feature/evil -> editor/evil
- feature/eval -> tools/eval
- feature/lookup -> tools/lookup
- feature/snippets -> editor/snippets
- feature/file-templates -> editor/file-templates
- feature/workspaces -> ui/workspaces

More potential changes in the future:

- A new :term category for terminal emulation modules (eshell, term and
  vterm).
- A new :os category for modules dedicated to os-specific functionality.
  The :tools macos module would fit here, but so would modules for nixos
  and arch.
- A new :services category for web-service integration, like wakatime,
  twitter, elfeed, gist and pastebin services.
2019-04-24 18:16:04 -04:00
Alex Ragone
4944668dfd feat: added org-habit module
Added a simple way to make the org-habit consistency graphs align to the
right margin as well as being responsive to the width of the window.
2019-04-22 17:18:20 +12:00
Henrik Lissner
653161fe2e
lang/org: refactor org config load order
- No longer use org-load-hook; it was unnecessary and there were corner
  cases where org would get loaded before hooks were added to it.
- Update comments
- Remove config that was redundant with org's defaults (wrt org-file-apps)
- Perform persp-mode check before using persp-mode API in
  +org|exclude-agenda-buffers-from-workspace advice.
- Update outdated smartparens config and move it out of
  org-mode-hook (only needs to be run once, not everytime org-mode is
  enabled)
- Autoload mode hooks
2019-04-10 18:47:21 -04:00
Henrik Lissner
3da6c23d75
lang/org: restore org-shifttab on S-TAB
For evil users
2019-04-10 18:09:32 -04:00
Henrik Lissner
af4ca974a3
lang/org: add +protocol module #257
Adds lazy-loaded support for org-protocol as a basis for features to
come.
2019-04-07 17:28:46 -04:00
Henrik Lissner
d947e15472
lang/org: add SPC m . and / keybinds for org-goto
And remove imenu remaps, they weren't behaving correctly.
2019-04-05 04:33:26 -04:00
Henrik Lissner
035a0a50e6
lang/org: change many org localleader keybinds
- Moves `SPC m s' to `SPC m b'
- Adds many new org-clock and org-goto keybinds
- Replaces imenu/imenu-anywhere with goto and goto-all
- Adds SPC m s -> org-schedule
- Move SPC m b -> SPC m , (org-switchb)
2019-04-05 04:12:56 -04:00
Henrik Lissner
31ca94f5b0
lang/org: remove unnecessary alias 2019-04-04 19:00:56 -04:00
Henrik Lissner
6084b774b8
lang/org: refactor and add keybinds for org tables
This update focuses on improving the key UX of org tables.

- Adds new table localleader keys under `SPC m s'
- Adds new localleader keybinds
  - New `s` prefix for table commands
  - New `f`/`F` keybinds for footnotes
  - New `'` keybind for `org-edit-special`
  - New `r` keybind for `org-refile`
- Bind localleader keys for both evil and non-evil users
- Refactors org table API
- For evil users:
  - Adds `zi` to toggle inline images
  - Finalize insert-mode keybind scheme for evil users (ala excel/gdocs)
    - C-{h,j,k,l} = move cursor between cells
    - C-M-{h,j,k,l} = insert cells in direction
    - C-M-S-{h,j,k,l} = swap cells in direction
2019-04-04 18:52:25 -04:00
Henrik Lissner
bf2aedc510
lang/org: rethink flyspell keybinds
- Remove ]s/[s keybinds in org-mode (rebound to ]c/[c); they overwrote
  next/prev flyspell error commands (which are vim defaults)
- Remove ]S/[S because z= already exists
- Remove redundant ]s/[s global keybinds (already bound by evil)
- Mention missing and evil's flyspell keybinds in a comment
2019-04-04 13:50:44 -04:00
Henrik Lissner
5e88c23411
Add evil jumplist support to org-open-at-point 2019-03-22 00:31:20 -04:00
Henrik Lissner
3e2779da39
Refactor leader/localleader keybinds
- Some buffer-local commands were removed from leader binds
- Some more commands were added to org's localleader
- Reformatted some leader keys so that lower/upper case keys are grouped
  together, rather than apart.
- Add SPC-s-c and SPC-s-e for creating/using temporary snippets (with
  auto-yasnippet).
2019-03-14 18:38:51 -04:00
Henrik Lissner
90f36bceff
Undo 1f23eecd: un-homogenize TAB/RET/ESC
This is more trouble than its worth. Better to deal with the old edge
cases than the new ones this causes.

Addresses #1218
2019-03-14 17:59:24 -04:00
Henrik Lissner
b9bbc95f1b
Fix void-variable org-file-apps error #1232
Snuck in during fa26dc12
2019-03-08 14:26:25 -05:00
Henrik Lissner
fa26dc1269
Refactor lang/org 2019-03-08 02:37:33 -05:00
Henrik Lissner
9d30b411c2
lang/org: bind dwim-at-point to RET instead #1218
[return] is treated as a different key (with higher precedence in GUI
Emacs), which means it overwrites RET behaviors bound elsewhere, like in
config/default or minor mode maps (like evil-multiedit's).
2019-03-05 18:37:50 -05:00
Henrik Lissner
ec0fe7808e
Don't hardcode :weight bold into org-todo keywords
It would undermine any attempt by users to disable bold fonts.
2019-03-02 12:38:15 -05:00
Henrik Lissner
9ed9daa79f
No longer disable line numbers in org-mode
Now that doom-themes no longer imposes variable height heading fonts.
However, if you use them yourself, you may want to disable line numbers
there yourself via

  (add-hook 'org-mode-hook #'doom|disable-line-numbers)
2019-03-02 02:04:11 -05:00
Henrik Lissner
024f383a08
lang/org: add full link at point display to eldoc 2019-02-24 13:47:53 -05:00
Henrik Lissner
c13fd6eddc
lang/org: fix C/s-RET keybinds for evil users 2019-02-11 14:11:52 -05:00
Henrik Lissner
b461c99d86
lang/org: fix C-RET/s-RET in org-mode #1146 2019-02-03 18:51:55 -05:00
Henrik Lissner
a337c1bd4e
lang/org: generalize newline keys
To make them available to both emacs/evil users.
2019-01-22 19:29:13 -05:00
Henrik Lissner
6e57350277
lang/org: restore meta return keybinds 2018-12-31 15:57:06 -05:00
Henrik Lissner
448f2e55e5
lang/org: update localleader keybinds
To better suit the new map!
2018-12-25 02:32:53 -05:00
Henrik Lissner
70a4db49d1
lang/org: fix C-S-return & S-s-return keybinds 2018-12-24 02:43:32 -05:00
Henrik Lissner
f9b72545b7
Replace def-org-file-link! with function
A macro is overkill for this.
2018-12-23 23:55:14 -05:00
Henrik Lissner
3f195614d9
Normalize :leader/:localleader keybinds
Evil states no longer apply to them. Also removes x-alt-keysym.
2018-12-23 23:54:27 -05:00
Henrik Lissner
936f13744b
lang/org: improve error handling for remote image previews 2018-10-18 12:54:37 -04:00
Henrik Lissner
b2927955e7
lang/org: move org-yt out of +attach in config.el 2018-10-18 12:51:35 -04:00
Henrik Lissner
ecaa8fc7cd
lang/org: move custom links into new hook function 2018-10-18 12:50:39 -04:00
Henrik Lissner
b1f249afab
lang/org: lazyload & refactor org-pdfview 2018-10-15 00:14:27 -04:00