Commit Graph

19 Commits

Author SHA1 Message Date
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