Commit graph

18 commits

Author SHA1 Message Date
Henrik Lissner
aa54383b5d
refactor: deprecate doom-etc-dir for doom-data-dir
doom-etc-dir will be renamed to doom-data-dir, to better reflect its
purpose, and align it with XDG_DATA_HOME (where it will be moved to in
v3, where Doom will begin to obey XDG directory conventions more
closely).
2022-08-14 20:43:35 +02:00
Henrik Lissner
ad6a3d0f33
refactor: deprecate featurep! for modulep!
featurep! will be renamed modulep! in the future, so it's been
deprecated. They have identical interfaces, and can be replaced without
issue.

featurep! was never quite the right name for this macro. It implied that
it had some connection to featurep, which it doesn't (only that it was
similar in purpose; still, Doom modules are not features). To undo such
implications and be consistent with its namespace (and since we're
heading into a storm of breaking changes with the v3 release anyway),
now was the best opportunity to begin the transition.
2022-08-14 20:43:35 +02:00
Seong Yong-ju
db7926a1bd Do not eval skk-mode-exit if ddskk not loaded 2020-11-19 22:47:54 +09:00
Seong Yong-ju
1aa75456e8 Minor refactor 2020-10-31 16:13:51 +09:00
Seong Yong-ju
20ecefb0f8 Escape skk-mode on doom/escape 2020-10-24 20:31:54 +09:00
Henrik Lissner
ffbd7b63bf
Fix #3654: prevent org-export-to-html removing line-breaks
When either :input chinese or :input japanese is enabled, due to
overzealous advice.
2020-08-02 01:33:51 -04:00
Henrik Lissner
2d365619cd
General refactor & cleanup, across the board 2019-09-13 22:00:34 -04:00
Sunn Yao
8f061eb6b8 input/{chinese,japanese}: fix org-html-paragraph advice 2019-09-02 00:48:33 -04:00
Henrik Lissner
ef4424bda6
input/{chinese,japanese}: fix org-html advice regexp #1649 2019-08-07 23:36:21 -04:00
Henrik Lissner
b2aec5f546
input/{chinese,japanese}: fix #1649 2019-08-07 17:07:36 -04: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
d5646d2b88
input/{japanese,chinese}: conform to new conventions 2019-07-23 00:01:59 +02:00
Henrik Lissner
51d3b1b424
💥 revise advice naming convention (1/2)
This is first of three big naming convention updates that have been a
long time coming. With 2.1 on the horizon, all the breaking updates will
batched together in preparation for the long haul.

In this commit, we do away with the asterix to communicate that a
function is an advice function, and we replace it with the '-a' suffix.
e.g.

  doom*shut-up -> doom-shut-up-a
  doom*recenter -> doom-recenter-a
  +evil*static-reindent -> +evil--static-reindent-a

The rationale behind this change is:

1. Elisp's own formatting/indenting tools would occasionally struggle
   with | and * (particularly pp and cl-prettyprint). They have no
   problem with / and :, fortunately.
2. External syntax highlighters (like pygmentize, discord markdown or
   github markdown) struggle with it, sometimes refusing to highlight
   code beyond these symbols.
3. * and | are less expressive than - and -- in communicating the
   intended visibility, versatility and stability of a function.
4. It complicated the regexps we must use to search for them.
5. They were arbitrary and over-complicated to begin with, decided
   on haphazardly way back when Doom was simply "my private config".

Anyhow, like how predicate functions have the -p suffix, we'll adopt the
-a suffix for advice functions, -h for hook functions and -fn for
variable functions.

Other noteable changes:
- Replaces advice-{add,remove}! macro with new def-advice!
  macro. The old pair weren't as useful. The new def-advice! saves on a
  lot of space.
- Removed "stage" assertions to make sure you were using the right
  macros in the right place. Turned out to not be necessary, we'll
  employ better checks later.
2019-07-22 02:27:45 +02:00
Henrik Lissner
b820de0ba9
input/japanese: lazy load migemo
And don't error fatally if migemo isn't installed. Also, don't activate
helm-migemo-mode nor avy-migemo-mode if migemo doesn't initialize.
2019-05-21 21:56:06 -04:00
Henrik Lissner
912cc4b522
input/japanese: lazy-load pangu-spacing
Also fixes typo in :general use
2019-05-21 03:41:43 -04:00
Henrik Lissner
3eb5e8d40e
input/japanese: fix typo & use :general 2019-05-21 03:39:19 -04:00
Henrik Lissner
8d9a15e414
Add :input japanese module 2019-05-13 00:57:59 -04:00