Commit Graph

37 Commits

Author SHA1 Message Date
5f2e708cd7 Minor refactors and reformatting 2019-12-12 03:48:25 -05:00
e799022a1e lang/org: fix 'wrong-number-of-arguments quote 3' error 2019-11-28 21:53:12 -05:00
9bd8904838 lang/org: fix #2119 2019-11-27 23:52:37 -05:00
843be4d2a6 lang/org: refactor org-journal integration 2019-10-31 23:09:43 -04:00
5f00db871e lang/org: major refactor & add org-fancy-priorities package
- Fixes an issue where evil bindings weren't working in org-mode
- Significantly slims down on unnecessary keybinds
- Remove +org-init-keybinds-for-evil-h hook and reli more on our new
  evil-org fork, which has upstreamed some of our changes.
- Documents undocumented functions, remove unnused ones, and reorganize
  org's autoload libraries by convention.
- Adds org-fancy-priorities for more elegant (and subtle) priority
  display than ugly [#A] tags.
2019-10-25 20:25:20 -04:00
1694641636 lang/org: minor refactor of contrib submodules 2019-10-20 19:57:28 -04:00
c5464f1798 lang/org: replace ox-reveal w/ org-re-reveal
ox-reveal is no longer maintained, and has been replaced with
org-re-reveal; a fork.
2019-10-20 19:57:27 -04:00
e0469e14c0 Minor refactors & reformatting across the board 2019-10-20 19:57:27 -04:00
285eab1ee5 Add support for org-pomodoro 2019-10-14 15:04:17 +10:00
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
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
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
ce6b2f8c71 move map! to the :preface section 2019-10-04 10:31:19 +02:00
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
ea4fa7021d move +hugo feature to contrib/+hugo.el 2019-09-30 17:28:15 +02: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
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
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
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
1e318f7148 Fix wrong-type-arg +org-dragndrop-download-dnd error
Whoops! I was treating appendq! like pushnew!
2019-07-22 04:27:01 +02:00
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
8147bc1aee 💥 lang/org: conform to new name conventions 2019-07-22 02:30:38 +02:00
aeb5cca727 Fix ob-ipython popup rule affecting python REPL 2019-07-11 01:23:34 +02:00
da0b11d0f5 Fix ob-ipython popup rule
:transient property was removed long ago.
2019-07-10 22:26:40 +02:00
30e14d7681 Use python lexer when exporting ipython blocks 2019-07-10 22:26:03 +02:00
afdec75cbc lang/org: refactor ob-ipython advice 2019-07-10 21:50:54 +02:00
eee147f6f3 lang/org: fix ipython unfontified src blocks #1553 2019-07-10 19:00:41 +02:00
468e630110 lang/org: refactor contrib modules
- Fix #1546
- Ensure contrib modules aren't included in byte-compilation/autoload
  generation if their requisite flags aren't enabled
2019-07-09 22:44:51 +02:00
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
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