Commit graph

43 commits

Author SHA1 Message Date
Jeetaditya Chatterjee
4696f0d4ce
tweak(syntax): feat gate flycheck in all modules 2023-07-25 00:11:09 +01:00
Jeetaditya Chatterjee
fd7ac6710e feat(tree-sitter): add support for more languages
In this case
- lua
- erlang
- ess-r
- yaml
2023-02-21 20:51:33 -05: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
Henrik Lissner
d58d084774
tweak(:lang,:tools): start eglot/lsp-mode later
To ensure lsp/eglot settings have precedence over local servers (e.g.
cider and lookup handlers).

Ref: clojure-emacs/cider#3170
2022-03-30 17:32:47 +02:00
Henrik Lissner
376f9b797c feat(ess): add +stan
Docs will be updated later, along with the rest of the pending docs
rewrite.
2021-10-18 12:09:42 +02:00
Henrik Lissner
d23d18d7a4
lang/ess: set company backends for ess-r-mode 2020-08-20 02:14:32 -04:00
Henrik Lissner
724413d88f
Bind C-RET -> ess-eval-line in normal mode
And reformat ess keybinds.
2020-02-08 18:13:00 -05:00
Seong Yong-ju
48b4847db3 Call lsp! in ess-r-mode-local-hook 2020-02-02 17:26:28 +09:00
Seong Yong-ju
abd12a0515 Make the LSP lookup handler fallback to ESS 2020-02-02 12:02:24 +09:00
Seong Yong-ju
d496f27741 Add LSP support for ESS R 2020-02-01 17:06:15 +09:00
Henrik Lissner
12094788d7
Fix references to :tools fly{spell,check} 2020-01-14 03:04:26 -05:00
Henrik Lissner
566d54d984
Disable continue-comments-on-RET in ess-r-mode & coq-mode
Fixes #2081, #2233
2019-12-27 13:32:24 -05:00
Alexey Shiklomanov
29905c1496 Fix deprecated ESS variables
- `ess-smart-S-assign-key` and `ess-expression-offset` are deprecated variables
- `ess-default-style` has been replaced with `ess-style`
2019-12-23 16:34:43 -05:00
Henrik Lissner
0b67251159
tools/eval: associate plist with repl handlers
Also consolidates all REPLs (opened through the :tools eval module)
under one popup rule, which inhibits ESC from prematurely closing
them (#1944), and cleans up after their buffers *only* if their handlers
weren't specified to :persist, e.g.

  (set-repl-handler! 'some-mode #'some-repl-handler :persist t)

Also standardized ESS's REPL commands.
2019-10-23 21:41:23 -04:00
Henrik Lissner
9b25582be1
Reduce list of root files projectile searches for
And define them on a per-module basis. This reduces the number of file
checks it performs, particularly for non-project files.

Might help #1317
2019-10-19 22:22:49 -04:00
Henrik Lissner
342d7f8f12
Minor reformatting & comment revision 2019-09-22 11:59:53 -04: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
Siddharth Shekar
aa64cf9426 Replace kill-this-buffer with kill-current-buffer
As per the documentation for kill-this-buffer, it should only be invoked
from the menu and behaves unpredictably when invoked programmatically.
2019-05-30 18:54:58 -07:00
Henrik Lissner
7c9e96da87
General module refactor 2019-03-02 02:04:11 -05:00
Henrik Lissner
81e30dc13c
lang/ess: add basic evil support to ess-help-mode 2019-02-15 20:32:37 -05:00
Henrik Lissner
2d0f250241
lang/ess: fix keymaps prefixes
They may not be loaded when bound.
2019-02-15 20:25:21 -05:00
Henrik Lissner
4c4c0a451f
lang/ess: remove redundant line-number display hook
`display-line-numbers-mode` is already in prog-mode-hook and ess-mode is
derived from prog-mode.
2019-02-15 19:43:13 -05:00
Henrik Lissner
a246a90565
lang/ess: fix repl & doc lookup in ESS R/Julia
Also moves history files into doom-cache-dir
2019-02-15 19:43:13 -05:00
Henrik Lissner
3f195614d9
Normalize :leader/:localleader keybinds
Evil states no longer apply to them. Also removes x-alt-keysym.
2018-12-23 23:54:27 -05:00
Henrik Lissner
ed702bab16
lang/ess: minor reformatting
Make hooks stand out a little more.
2018-09-10 22:39:11 -04:00
Henrik Lissner
ae6d106dce
lang/ess: update to reflect changes upstream #880 2018-09-10 22:36:37 -04:00
Henrik Lissner
a7da9a4738
💥 Rewrite line numbers system for Emacs 25
This removes the various doom-line-number* variables and replaces it
with the Emacs 26 display-line-numbers API, which I've ported to Emacs
25.x (however, it uses nlinum under the hood, and not all of
display-line-numbers options are supported).
2018-08-21 03:34:39 +02:00
Vikash Kathirvel
53d54608d3 Removed broken package ess-smart-equals 2018-08-09 22:33:44 +05:30
Vikash Kathirvel
ff4d5be1fa Fixed ess main load point 2018-08-09 19:22:08 +05:30
Henrik Lissner
f6dc6ac74e
Refactor out map.el usage
After some profiling, it turns out map-put and map-delete are 5-7x
slower (more on Emacs 25) than delq, setf/alist-get and add-to-list for
small lists (under 250 items), which is exactly how I've been using
them.

The only caveat is alist-get's signature is different on Emacs 25, thus
a polyfill is necessary in core-lib.
2018-06-23 19:53:54 +02:00
Henrik Lissner
c0251aacee
Replace :lookup with set-lookup-handlers! autodef
And update all internal references.
2018-06-15 17:27:48 +02:00
Henrik Lissner
588359cc5f
Replace :eval/:repl with autodef functions
+ :eval => set-eval-handler!
+ :repl => set-repl-handler!
+ Updates all internal references.
2018-06-15 16:20:20 +02:00
Henrik Lissner
1e81a35461
Minimize dependence on map!
This is in preparation for general.el integration coming in 2.1.1. It is
very likely that map! will change (and even more, be split into several
macros). Not much, but change none-the-less. Specifically, the state
keywords (e.g. :nvi, :n, :i) will be removed in favor of a :state
property that takes a list, e.g. (normal visual insert).

In any case, both map! and general are also relatively expensive
compared to define-key and evil-define-key* (and the new define-key!
macro), so use that when we can.

This also means changes to either API won't affect Doom's modules in the
long term.
2018-06-03 15:46:00 +02:00
Henrik Lissner
09cb4f6716
Major refactor & optimization of how modules load their packages
Now that we are loading package autoloads files (as part of the
generated doom-package-autoload-file when running make autoloads), many
:commands properties are redundant. In fact, many def-package! blocks
are redundant.

In some cases, we can do without a config.el file entirely, and can move
into the autoloads file or rely entirely on package autoloads.

Also, many settings have been moved in their module's autoloads files,
which makes them available ASAP; their use no longer depends on module
load order.

This gained me a modest ~10% boost in startup speed.
2018-05-25 00:46:16 +02:00
Henrik Lissner
80adb9c1f6
General refactor for consistency & idempotency
Also updated comments
2018-05-18 01:26:41 +02:00
Henrik Lissner
b7cde2e01b
lang/ess: +r/repl => +ess/r-repl 2018-03-22 06:41:13 -04:00
Henrik Lissner
138ec2bf07
Remove manual loading of pkg-autoloads files
No longer necessary as of 0c80bb42
2018-02-28 17:57:30 -05:00
Henrik Lissner
3c203b2cd4
lang/ess: fix ess-site load error at compile time (take 2) 2018-02-19 01:08:40 -05:00
Henrik Lissner
e3d454d855
lang/ess: fix 'cannot open load file' errors 2018-02-18 22:45:22 -05:00
Henrik Lissner
e405b24495
lang/ess: replace obsolete vars with ess-offset-continued 2018-02-18 22:44:57 -05:00
Henrik Lissner
02dd396a74
lang/ess: enable line numbers in ESS modes 2018-02-18 22:37:34 -05:00
Henrik Lissner
8796a7407a
lang/ess: conform to code conventions; no-byte-compile packages.el 2018-02-10 02:14:58 -05:00
fuxialexander
31e2968d54 Add: ESS module 2018-02-06 02:18:49 +08:00