Commit Graph

31 Commits

Author SHA1 Message Date
342d7f8f12 Minor reformatting & comment revision 2019-09-22 11:59:53 -04:00
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
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
7c9e96da87 General module refactor 2019-03-02 02:04:11 -05:00
81e30dc13c lang/ess: add basic evil support to ess-help-mode 2019-02-15 20:32:37 -05:00
2d0f250241 lang/ess: fix keymaps prefixes
They may not be loaded when bound.
2019-02-15 20:25:21 -05:00
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
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
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
ed702bab16 lang/ess: minor reformatting
Make hooks stand out a little more.
2018-09-10 22:39:11 -04:00
ae6d106dce lang/ess: update to reflect changes upstream #880 2018-09-10 22:36:37 -04:00
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
53d54608d3 Removed broken package ess-smart-equals 2018-08-09 22:33:44 +05:30
ff4d5be1fa Fixed ess main load point 2018-08-09 19:22:08 +05:30
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
c0251aacee Replace :lookup with set-lookup-handlers! autodef
And update all internal references.
2018-06-15 17:27:48 +02:00
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
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
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
80adb9c1f6 General refactor for consistency & idempotency
Also updated comments
2018-05-18 01:26:41 +02:00
b7cde2e01b lang/ess: +r/repl => +ess/r-repl 2018-03-22 06:41:13 -04:00
25d8637263 lang/ess: autoloads.el (incorrect) => autoload.el 2018-03-22 06:40:27 -04:00
138ec2bf07 Remove manual loading of pkg-autoloads files
No longer necessary as of 0c80bb42
2018-02-28 17:57:30 -05:00
3c203b2cd4 lang/ess: fix ess-site load error at compile time (take 2) 2018-02-19 01:08:40 -05:00
e3d454d855 lang/ess: fix 'cannot open load file' errors 2018-02-18 22:45:22 -05:00
e405b24495 lang/ess: replace obsolete vars with ess-offset-continued 2018-02-18 22:44:57 -05:00
02dd396a74 lang/ess: enable line numbers in ESS modes 2018-02-18 22:37:34 -05:00
6c4e048c23 General refactor & cleanup 2018-02-14 07:47:22 -05:00
fb893065a9 📝 lang/ess: conform README to conventions 2018-02-10 15:11:36 -05:00
8796a7407a lang/ess: conform to code conventions; no-byte-compile packages.el 2018-02-10 02:14:58 -05:00
31e2968d54 Add: ESS module 2018-02-06 02:18:49 +08:00