Commit graph

278 commits

Author SHA1 Message Date
Henrik Lissner
51973dca9b
Move auto-fill-mode to text-mode-hook 2019-10-14 18:25:02 -04:00
Andrew Whatson
285eab1ee5 Add support for org-pomodoro 2019-10-14 15:04:17 +10:00
Henrik Lissner
25acbd29d5
lang/org: fix TAB in tty Emacs #1897 2019-10-13 14:48:48 -04:00
Henrik Lissner
922b48872d
lang/org: move hugo config into +org-init-export-h
It doesn't warrant its own file under contrib.
2019-10-12 00:48:47 -04:00
Henrik Lissner
22b0b43fe1
lang/org: replace SPC m e with org-export-dispatch #1879
Let ox handle the export dispatch keybinds.
2019-10-12 00:48:47 -04:00
Łukasz Kaźmierczak
f8fe6f3a80 keybindings for org-html-export 2019-10-09 17:45:17 +02:00
Henrik Lissner
c6d5fa601e
lang/org: fix temporary agenda buffers if/when switched to 2019-10-07 23:20:23 -04:00
Henrik Lissner
de223e7398
Fix #1858, #1689: don't kill temp agenda buffers (yet)
Some commands expect temporary org agenda buffers (opened by org-agenda)
to remain open, so instead of proactively killing them we remap
org-agenda-quit and org-agenda-Quit to org-agenda-exit, which does that
for us at a more appropriate time: when closing the agenda.
2019-10-07 12:54:45 -04:00
Henrik Lissner
f6a182d69c
lang/org: clean up temp org-agenda buffers
Now auto-kills temporary agenda buffers, so long as they weren't already
opened by the user and doesn't exist in any other workspace.
2019-10-04 13:57:20 -04:00
Henrik Lissner
423a38c758
lang/org: move contrib/+hugo -> contrib/hugo
+ Refill +hugo flag's description in the README
+ Lazy load ox-hugo localleader keybinds by package, rather than by
  keymap deferral
2019-10-04 12:37:41 -04:00
Lorenzo Giuliani
8457d2f825 descriptions and keybindings as per ox-hugo docs
Mimicks the ox menu `C-c C-e H #`
2019-09-30 17:29:09 +02:00
Lorenzo Giuliani
8fd3bd80da fix config.el, clean package :recipe 2019-09-30 17:29:09 +02:00
Lorenzo Giuliani
ea4fa7021d move +hugo feature to contrib/+hugo.el 2019-09-30 17:28:15 +02:00
Lorenzo Giuliani
f6b79d40a2 add ox-hugo to org 2019-09-30 17:23:38 +02:00
Henrik Lissner
a8e7c4fd45
Move helm-org config to completion/helm 2019-09-28 23:08:44 -04:00
Henrik Lissner
9d770546da
Merge pull request #1741 from jjzmajic/helm-org
Add helm-org (bound but not installed).
2019-09-28 23:02:25 -04:00
Henrik Lissner
87b7a8da05
lang/org: fix broken inline-image previews
For uses with imagemagick installed. Caused by
48da60f4
2019-09-26 16:04:07 -04:00
Henrik Lissner
bdd51cdee9
lang/org: fix promotion/demotion ctrl keys 2019-09-22 11:39:28 -04:00
Henrik Lissner
e10cd8cf2e
Insult byte-compiler's mom
Yeah, that shut him up.
2019-09-20 23:10:53 -04:00
Henrik Lissner
06328840c3
lang/org: split compound condition into two :when's 2019-09-15 19:23:06 -04:00
Henrik Lissner
c3997730dd
lang/org: rebind zn to org-tree-to-indirect-buffer
To match global behavior of zn (narrow in indirect buffer).
2019-09-13 00:28:08 -04:00
Jake Coble
d3b1ef72c2 Use org-startup-indented instead of mode hook 2019-09-12 14:04:38 -07:00
Henrik Lissner
1c05773c39
General, minor refactors & comment revision 2019-09-11 23:41:08 -04:00
Henrik Lissner
6f6e30c428
ui/popup: refactor org hacks
This removes a few popup advice functions that are no longer necessary
and changes how we handle org agenda windows (they're now displayed in
the current window, rather than a popup -- see org-agenda-window-setup
to change this).

Other issues addressed:

+ Fixes 'Attempt to delete main window of frame' errors when using
  org-todo from popups (particularly in daemon Emacs).
+ Removed the custom 'popup-window options for org-agenda-window-setup
  and org-src-window-setup, and change them to 'current-window and
  'other-window, respectively.
2019-09-10 14:54:13 -04:00
Henrik Lissner
a3a73bd316
Handle non-string/symbol langs in babel lazy loader
Possibly addresses #1745
2019-09-08 20:55:21 -04:00
Henrik Lissner
1031adb6af
lang/org: remove redundant variables
Many of these settings are redundant with their defaults.
2019-09-05 13:12:44 -04:00
Henrik Lissner
05ab672ef9
Merge pull request #1732 from UndeadKernel/feature_sp-org
lang/org: smarter smartparens in org src blocks
2019-09-02 00:46:44 -04:00
Uros Perisic
3996b01457 Add helm-org (bound but not installed). 2019-08-31 19:45:15 +08:00
Undead Kernel
521ff7ac1a lang/org: smarter smartparens in org src blocks
While point is in a babel src block, do not autoexpand emphasis markers.
2019-08-29 15:43:53 +02:00
Henrik Lissner
7727920629
Rewrite doom/reload 2019-08-28 15:19:58 -04:00
Henrik Lissner
16b1456192
lang/org: fix new filepath defaults
...if org is loaded before the module.
2019-08-28 12:40:59 -04:00
Henrik Lissner
08dd489a93
lang/org: correct/expand keybinding comments 2019-08-27 00:13:04 -04:00
Henrik Lissner
823aa91aa2
lang/org: update org-modules
Modules have had their org- prefic renamed to ol-.
2019-08-15 21:14:21 -04:00
Ralf Beckmann
504a590ad6 Add org-mode keybindings
Add bindings for adding attachments and setting properties
in org-mode.
2019-08-15 02:37:30 +02:00
Henrik Lissner
30d5eff10a
lang/org: optimize smartparens rule for headings 2019-08-07 17:03:16 -04:00
Henrik Lissner
9ab49be564
Fix "fatal: no names found" errors on 'doom rebuild'
Some packages that depend on org (like elfeed) will load the built-in
org early in the rebuild/package install process, which causes org to
define org-release and org-git-version, sometimes overwriting our stubs
for it. Without our hack, org call 'git describe' in the org repo in an
attempt to determine the installed version, which won't work in a sparse
clone. To ensure future definitions never overwrite ours, we advise them
as well.

Also moves magit-version hack to its autoload file, for consistency with
org's hacks.
2019-08-07 16:31:45 -04:00
Henrik Lissner
09d67f86d9
lang/org: move org-release hack back to config.el
We don't need it available *that* early.
2019-07-29 15:05:26 +02:00
Henrik Lissner
00a4701b16
lang/org: org-export-with-smart-quotes = t 2019-07-29 03:18:38 +02:00
Henrik Lissner
09d13fd60d
Use add-hook! for inline hook defuns 2019-07-27 02:46:49 +02:00
Henrik Lissner
a3e262c7ac
💥 Refactor add-hook! macro & change arg order
This update may potentially break your usage of add-hook! if you pass
the :local or :append properties to it. This is how they used to work:

  (add-hook! :append 'some-mode-hook #'do-something)

Thsoe properties must now follow the hooks, e.g.

  (add-hook! 'some-mode-hook :append #'do-something)

Other changes:
- Various add-hook calls have been renamed to add-hook! because I
  incorrectly assumed `defun` always returned its definition's symbol,
  when in fact, its return value is "undefined" (so sayeth the
  documentation). This should fix #1597.
- This update adds the ability to add multiple functions to hooks
  without a list:

    (add-hook! 'some-mode-hook
               #'do-something
               #'do-something-else)

- The indentation logic has been changed so that consecutive function
  symbols at indented at the same level as the first argument, but forms
  are indent like a defun.

    (add-hook! 'some-mode-hook
               #'do-something
               #'do-something-else)

    (add-hook! 'some-mode-hook
      (message "Hello"))
2019-07-26 20:17:29 +02:00
Henrik Lissner
3b9838ed41
lang/org: prevent circular refs in nconc'ed list 2019-07-23 18:05:28 +02:00
Henrik Lissner
dc9766ca37
lang/org: move org version hack to init.el
So that it's visible to external org tools, like org-tangle or the
literate module.
2019-07-23 17:51:35 +02:00
Henrik Lissner
82ae3a73f3
def-advice!->defadvice! & conform to new advice conventions
This commit does two things:

- Renames def-advice! to defadvice!, in the spirit of naming convenience
  macros after the function/macro they enhance or replace.
- Correct the names of advice functions to indicate visibility and
  intent. A public advice function like doom-set-jump-a is meant to be
  used elsewhere. A private one like +dired--cleanup-header-line-a
  shouldn't -- it likely won't work anywhere but the function(s) it was
  made to advise.
2019-07-23 17:24:56 +02:00
Henrik Lissner
76cacb5bfe
💥 Rename def-package! -> use-package!
Calling this pivotal macro "def-package!" has frequently been a source
of confusion. It is a thin wrapper around use-package, and it should be
obvious that it is so. For this reason, and to match the naming
convention used with other convenience macros/wrappers, it is now
use-package!.

Also changes def-package-hook! -> use-package-hook!

The old macros are now marked obsolete and will be removed when straight
integration is merged.
2019-07-23 12:50:45 +02:00
Henrik Lissner
879ab3b2f3
Replace incorrect usage of doom-dir with doom-path 2019-07-22 04:20:52 +02:00
Henrik Lissner
0890851e81
lang/org: set org-link-abbrev-alist non-destructively
So prior values aren't overwritten (and shadow these defaults), and also
because, due to the hook order, the attach: link was overwritten by this
setq.
2019-07-22 03:17:00 +02:00
Henrik Lissner
a124c1b993
lang/org: org-enforce-todo-dependencies = t 2019-07-22 02:37:47 +02:00
Henrik Lissner
74f7c58ef1
lang/org: org-highlight-sparse-tree-matches = nil
Helps sparse tree + org-indent-mode cooperate.
2019-07-22 02:37:46 +02:00
Henrik Lissner
ecb43f1a2b
lang/org: hide blocked tasks in agenda view 2019-07-22 02:37:46 +02:00
Henrik Lissner
060ede0e2e
General, minor reformatting across the board
And an offering of blood to our great lord Byte Compiler-sama.
2019-07-22 02:37:45 +02:00