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
Julian DeMille
50dd1e63ac
Remove flycheck-rust since it is no longer used.
2019-07-21 09:16:13 -04:00
Henrik Lissner
c0530202a5
lang/org: restore attach entry in org-link-abbrev-alist
2019-07-20 11:40:03 +02:00
Henrik Lissner
345d09d393
lang/emacs-lisp: don't fontify function in quoted list
2019-07-18 13:13:31 +02:00
Henrik Lissner
2ff762b397
Fix fd/rtags on debian/ubuntu
...
On debian/ubuntu, these executables have a different name:
- fd -> fdfind
- rc -> rtags-rc
- rdm -> rtags-rdm
2019-07-14 22:04:50 +02:00
Henrik Lissner
62af55dad0
Move emacs-snippets -> doom-snippets
...
The repo was renamed upstream.
2019-07-14 17:05:48 +02:00
Henrik Lissner
de85f67b7c
lang/org: remove redundant attach: link abbreviation
2019-07-14 05:35:51 +02:00
Henrik Lissner
6153af9594
lang/markdown: only warn if all compilers are unavailable
...
Rather than check each individual module.
2019-07-14 00:24:09 +02:00
Henrik Lissner
c54509f99c
lang/rest: add basic imenu support
2019-07-13 13:00:26 +02:00
Henrik Lissner
e81cdc0523
lang/org: prioritize checkboxes lower in dwim command
...
Otherwise, checkboxes take priority over links, clocks or tables.
2019-07-13 02:24:11 +02:00
Henrik Lissner
157cb5287e
lang/org: enable latex export backend by default #1560
...
ox.el doesn't eager-load these packages anyway.
2019-07-12 15:42:26 +02:00
Henrik Lissner
8158cb1402
lang/rust: rustic-format-on-save = nil by default
...
Use :editor format instead.
2019-07-12 01:14:16 +02:00
Henrik Lissner
d2b694ed53
lang/scala: fix REPL command for non-project files
...
run-scala errors out if you're not in a valid project.
2019-07-11 01:24:28 +02:00
Henrik Lissner
aeb5cca727
Fix ob-ipython popup rule affecting python REPL
2019-07-11 01:23:34 +02:00
Henrik Lissner
5c09772219
lang/rust: fix rustic load order
...
Since both the rust-mode and rustic packages aggressively fight for
precedence in auto-mode-alist, rustic *must* be loaded after rust-mode,
so we switch from rust-mode to rustic-mode if it's available. This only
needs to happen once.
2019-07-11 01:09:30 +02:00
Henrik Lissner
da0b11d0f5
Fix ob-ipython popup rule
...
:transient property was removed long ago.
2019-07-10 22:26:40 +02:00
Henrik Lissner
30e14d7681
Use python lexer when exporting ipython blocks
2019-07-10 22:26:03 +02:00
Henrik Lissner
afdec75cbc
lang/org: refactor ob-ipython advice
2019-07-10 21:50:54 +02:00
Henrik Lissner
a201409fdd
Minor refactors across the board
2019-07-10 21:27:12 +02:00
Henrik Lissner
eb7d4bf0e8
lang/org: lazyload babel src highlighters packages
...
E.g. ob-*.el, if any
2019-07-10 19:30:56 +02:00
Henrik Lissner
eee147f6f3
lang/org: fix ipython unfontified src blocks #1553
2019-07-10 19:00:41 +02:00
Henrik Lissner
5c7c62ad22
lang/scala: move lsp! to local-vars hook
...
Start lsp as late as possible so users have more time to inject
file/dir-local vars or customization hooks before it is started.
2019-07-10 11:33:46 +02:00
Henrik Lissner
3a2f156acd
lang/sh: extract extra fontification into hook
...
So it can apply to sh-mode derivatives, like direnv-envrc-mode.
2019-07-10 02:28:01 +02:00
Henrik Lissner
e17e9a5c53
lang/sh: associate bin/[^/]$ files with sh-mode
2019-07-10 02:27:27 +02:00
Henrik Lissner
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
Henrik Lissner
7b04bee2de
lang/rust: add doctor checks for lsp servers
2019-07-09 20:35:09 +02:00
Henrik Lissner
31875b64f4
Set rustic-rls-pkg sooner
...
To give the user an opportunity to change it.
2019-07-09 19:29:08 +02:00
Henrik Lissner
a7a9951a50
lang/rust: fix void-function package-installed-p
2019-07-09 18:50:50 +02:00
Henrik Lissner
7f735bcafa
lang/rust: fix cannot load file t error with +lsp
2019-07-09 18:46:27 +02:00
Henrik Lissner
236c9ceeab
lang/rust: use rustic-mode instead on Emacs 26+
2019-07-09 17:54:18 +02:00
Henrik Lissner
1f0a5f04f2
lang/lua: improve moonscript & love2D support
...
- Fix moonscript-mode not highlighting/treating single-quoted strings as
strings
- Fontify interpolated expressions in moonscript-mode strings (PR
upstream?)
- Fix +lua-love-mode project detection
- Fix +lua/run-love-game love project root resolution
2019-07-09 02:19:35 +02:00
Henrik Lissner
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
Henrik Lissner
52dc5001bc
lang/ocaml: refactor & reformat
...
This ensures that users' after! blocks have precendence over ocaml
packages.
2019-07-08 22:08:59 +02:00
Henrik Lissner
56393420e5
lang/ocaml: ensure * in block comments are padded
...
(*
* <-- ensures there is at least one space here
*)
2019-07-08 22:08:59 +02:00
Henrik Lissner
d0412b7f56
lang/ocaml: start lsp as late as possible
...
Gives the user more opportunity to customize lsp et co with
file/dir-local variables or mode hooks.
2019-07-08 21:24:36 +02:00
Henrik Lissner
e645185907
Set org-crypt vars sooner
...
In :init rather than :config, so users' (after! org-crypt ...) blocks
take precedence.
2019-07-08 21:17:04 +02:00
Henrik Lissner
d2991930ae
lang/org: minor refactor
...
- Set file variables sooner
- Change org-tags-exclude-from-inheritance additively, rather than
destructively
2019-07-08 11:58:58 +02:00
Henrik Lissner
f09a2b60c4
lang/rust: move lsp! to local-vars hook
...
i.e. start lsp-mode as late as possible
2019-07-07 17:39:19 +02:00
Henrik Lissner
7c9e9a3446
Move lsp! to local-vars hooks
...
- Set lsp-java-server-install-dir
- Use lsp! instead of lsp in lang/cc
2019-07-07 01:58:08 +02:00
Reed Mullanix
30cd902d4d
Make requested changes for F# lsp support
2019-07-05 10:58:55 -07:00
Reed Mullanix
e831607335
Document F# lsp flag
2019-07-05 10:37:16 -07:00
Reed Mullanix
9c950ff3f6
Add LSP support for F#
2019-07-05 10:32:01 -07:00
chrunchyjesus
e577ce0162
add b prefix back
2019-07-05 16:15:05 +02:00
chrunchyjesus
301173f35f
remove b prefix, small refactor
2019-07-04 21:33:13 +02:00
chrunchyjesus
883c390e2e
add documentation regarding some commands
2019-07-04 21:13:21 +02:00
chrunchyjesus
9f37363764
use keybindings from cargo mode
2019-07-04 20:58:44 +02:00
Henrik Lissner
fbf58aac8c
lang/org: add +org|init-export to org-load-hook #1535
2019-07-03 16:37:48 +02:00
Henrik Lissner
33aef74da0
Merge pull request #1529 from idanko/go-lsp-priority
...
lang/go: prioritize lsp over guru
2019-07-03 00:49:23 +02:00
Illia Danko
78e290b6f6
lang/go: integrate lsp to local-vars hook
2019-07-02 23:23:28 +03:00
Henrik Lissner
f0228fbc7a
Merge pull request #1464 from Amatrelan/rust-readme
...
Rust readme
2019-07-02 20:12:15 +02:00