doomemacs/modules/lang
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
..
agda Add agda2-next-goal and agda2-previous-goal 2019-04-23 00:13:54 +01:00
assembly Refactor out map.el usage 2018-06-23 19:53:54 +02:00
cc Fix fd/rtags on debian/ubuntu 2019-07-14 22:04:50 +02:00
clojure Minor refactors across the board 2019-07-10 21:27:12 +02:00
common-lisp 💥 Remove :feature category 2019-04-24 18:16:04 -04:00
coq Move emacs-snippets -> doom-snippets 2019-07-14 17:05:48 +02:00
crystal feature/{syntax-checker,spellcheck} -> tools/fly{check,spell} 2019-02-22 00:25:30 -05:00
csharp lang/csharp: include +chsarp-sp-point-in-type-p 2019-02-19 01:28:07 -05:00
data Move mode-protobuf package to data module 2019-05-03 16:29:48 -03:00
elixir General module refactor 2019-03-02 02:04:11 -05:00
elm General module refactor 2019-03-02 02:04:11 -05:00
emacs-lisp 💥 revise advice naming convention (1/2) 2019-07-22 02:27:45 +02:00
erlang General module refactor 2019-03-02 02:04:11 -05:00
ess Replace kill-this-buffer with kill-current-buffer 2019-05-30 18:54:58 -07:00
fsharp Make requested changes for F# lsp support 2019-07-05 10:58:55 -07:00
go Move emacs-snippets -> doom-snippets 2019-07-14 17:05:48 +02:00
haskell Move emacs-snippets -> doom-snippets 2019-07-14 17:05:48 +02:00
hy Replace :eval/:repl with autodef functions 2018-06-15 16:20:20 +02:00
idris Normalize :leader/:localleader keybinds 2018-12-23 23:54:27 -05:00
java Move lsp! to local-vars hooks 2019-07-07 01:58:08 +02:00
javascript Minor refactors across the board 2019-06-26 14:31:06 +02:00
julia lang/julia: operator highlights for ess-julia-mode 2019-02-15 19:43:13 -05:00
kotlin Rename non-interactive function +kotlin-locate-gradlew-file 2019-04-11 10:16:53 +03:00
latex Minor refactor across the board 2019-03-04 20:47:26 -05:00
ledger 💥 Remove :feature category 2019-04-24 18:16:04 -04:00
lua lang/lua: improve moonscript & love2D support 2019-07-09 02:19:35 +02:00
markdown lang/markdown: only warn if all compilers are unavailable 2019-07-14 00:24:09 +02:00
nim 💥 revise advice naming convention (1/2) 2019-07-22 02:27:45 +02:00
nix use default nix-indent-function 2019-06-15 15:37:32 +03:00
ocaml lang/ocaml: refactor & reformat 2019-07-08 22:08:59 +02:00
org 💥 revise advice naming convention (1/2) 2019-07-22 02:27:45 +02:00
perl feature/{syntax-checker,spellcheck} -> tools/fly{check,spell} 2019-02-22 00:25:30 -05:00
php Move emacs-snippets -> doom-snippets 2019-07-14 17:05:48 +02:00
plantuml feature/{syntax-checker,spellcheck} -> tools/fly{check,spell} 2019-02-22 00:25:30 -05:00
purescript purescript: Properly register company backend 2018-11-05 20:10:38 +01:00
python Minor refactors across the board 2019-06-26 14:31:06 +02:00
qt Optimize lang/qt #642 2018-06-02 02:53:54 +02:00
racket Normalize :leader/:localleader keybinds 2018-12-23 23:54:27 -05:00
rest lang/rest: add basic imenu support 2019-07-13 13:00:26 +02:00
ruby Move lsp! to local-vars hooks 2019-07-07 01:58:08 +02:00
rust 💥 revise advice naming convention (1/2) 2019-07-22 02:27:45 +02:00
scala lang/scala: fix REPL command for non-project files 2019-07-11 01:24:28 +02:00
sh 💥 revise advice naming convention (1/2) 2019-07-22 02:27:45 +02:00
solidity feature/{syntax-checker,spellcheck} -> tools/fly{check,spell} 2019-02-22 00:25:30 -05:00
swift Replace +lsp|init with lsp! autodef 2019-03-02 01:34:19 -05:00
terra Remove unnecessary config 2019-04-05 02:15:23 -04:00
vala Add vala-mode 2018-10-16 06:22:34 +03:00
web lang/web: remove redundant :commands declaration 2019-06-30 13:21:06 +02:00