Commit Graph

577 Commits

Author SHA1 Message Date
4480ab0051 unquote interactive lambda macros 2019-10-03 21:32:07 +02:00
440f2cffaa move map! to the :init section of the package definition 2019-09-30 17:29:09 +02:00
ab144f89c2 use the λ! macro 2019-09-30 17:29:09 +02:00
22d3dbe306 use descriptions from kaushalmodi/ox-hugo@a8e0c6e
remove defun declarations, use lambdas
2019-09-30 17:29:09 +02:00
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
8fd3bd80da fix config.el, clean package :recipe 2019-09-30 17:29:09 +02:00
ea4fa7021d move +hugo feature to contrib/+hugo.el 2019-09-30 17:28:15 +02:00
a9e2bdf28c update package! with straight recipe
This is needed to avoid downloading the whole hugo configuration of the
repo' documentation website
2019-09-30 17:28:15 +02:00
84cd3b5bfb use package! macro :when flag
minor change to the README docs
2019-09-30 17:27:49 +02:00
ede04f705c add +hugo to init.example.el and README.org 2019-09-30 17:25:35 +02:00
f6b79d40a2 add ox-hugo to org 2019-09-30 17:23:38 +02:00
a8e7c4fd45 Move helm-org config to completion/helm 2019-09-28 23:08:44 -04:00
9d770546da Merge pull request #1741 from jjzmajic/helm-org
Add helm-org (bound but not installed).
2019-09-28 23:02:25 -04:00
87b7a8da05 lang/org: fix broken inline-image previews
For uses with imagemagick installed. Caused by
https://code.orgmode.org/bzg/org-mode/commit/48da60f4
2019-09-26 16:04:07 -04:00
bdd51cdee9 lang/org: fix promotion/demotion ctrl keys 2019-09-22 11:39:28 -04:00
e10cd8cf2e Insult byte-compiler's mom
Yeah, that shut him up.
2019-09-20 23:10:53 -04:00
4aff103770 Merge pull request #1785 from rgrinberg/org-journal-feature
lang/org: add +journal feature (org-journal)
2019-09-19 12:57:48 -04:00
baf9b3bc87 Use cookie for journal feature check
The :when option in the use-package clause is then removed

Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2019-09-18 13:30:26 +09:00
aa1d2f5d51 org-journal: defer config
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2019-09-18 13:29:51 +09:00
594e38fd47 Move org-journal config to contrib
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2019-09-18 13:29:06 +09:00
06328840c3 lang/org: split compound condition into two :when's 2019-09-15 19:23:06 -04:00
7886138f5b Add support for org-journal
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2019-09-15 13:56:43 +09:00
2d365619cd General refactor & cleanup, across the board 2019-09-13 22:00:34 -04:00
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
d3b1ef72c2 Use org-startup-indented instead of mode hook 2019-09-12 14:04:38 -07:00
1c05773c39 General, minor refactors & comment revision 2019-09-11 23:41:08 -04:00
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
a3a73bd316 Handle non-string/symbol langs in babel lazy loader
Possibly addresses #1745
2019-09-08 20:55:21 -04:00
f816149589 lang/org: update +org/remove-link
To reflects changes made upstream, in org.
2019-09-07 19:57:58 -04:00
1031adb6af lang/org: remove redundant variables
Many of these settings are redundant with their defaults.
2019-09-05 13:12:44 -04:00
059ede53b6 Update all unit tests
To meet changes introduced from the straight branch merge.
2019-09-03 00:59:46 -04:00
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
3996b01457 Add helm-org (bound but not installed). 2019-08-31 19:45:15 +08:00
9bbc77c2c7 Focus org-capture frame on MacOS 2019-08-29 18:45:20 -04:00
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
7727920629 Rewrite doom/reload 2019-08-28 15:19:58 -04:00
16b1456192 lang/org: fix new filepath defaults
...if org is loaded before the module.
2019-08-28 12:40:59 -04:00
08dd489a93 lang/org: correct/expand keybinding comments 2019-08-27 00:13:04 -04:00
823aa91aa2 lang/org: update org-modules
Modules have had their org- prefic renamed to ol-.
2019-08-15 21:14:21 -04:00
504a590ad6 Add org-mode keybindings
Add bindings for adding attachments and setting properties
in org-mode.
2019-08-15 02:37:30 +02:00
3c8e868b1b Remove built-in org from load-path at install time
Makes it less likely that packages will load the original org before the
new one has been installed.
2019-08-08 10:10:11 -04:00
30d5eff10a lang/org: optimize smartparens rule for headings 2019-08-07 17:03:16 -04:00
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
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
00a4701b16 lang/org: org-export-with-smart-quotes = t 2019-07-29 03:18:38 +02:00
a6836a476e lang/org: Package orgit if magit is enabled
https://github.com/magit/orgit
2019-07-28 16:29:53 +03:00
ead0b1ce15 lang/org: correct paths in comment headers 2019-07-27 17:06:55 +02:00
09d13fd60d Use add-hook! for inline hook defuns 2019-07-27 02:46:49 +02:00
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
302ec4e97a lang/org: fix and autoload org-release hack
- Lazy load all the things.
- Now org-release return a sane version string, which should address
  packages using it to version check org.
2019-07-23 18:36:18 +02:00