Commit graph

26 commits

Author SHA1 Message Date
Henrik Lissner
cce30367bb
tools/eshell: fix naive path concatenation for eshell-directory-name 2018-05-25 00:58:09 +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
b1dce548ad
tools/eshell: consider eshell buffers real 2018-05-18 01:26:41 +02:00
Henrik Lissner
5ab790c07d
tools/eshell: default to ~/.doom.d/eshell or ~/.eshell 2018-05-15 01:57:40 +02:00
Henrik Lissner
ba2fb4a82d
tools/eshell: remove custom aliases
That belongs in my private module
2018-05-15 01:33:22 +02:00
Henrik Lissner
a3800f3949
tools/eshell: set eshell-directory-name if ~/.doom.d/eshell exists 2018-05-15 01:33:07 +02:00
Henrik Lissner
a6cc5a219b
tools/eshell: major refactor; add eshell management commands 2018-03-24 17:05:06 -04:00
Henrik Lissner
38a5e73e2e
tools/eshell: major refactor & update 2018-03-23 18:17:59 -04:00
Henrik Lissner
45c2221316
General update for docstrings and comments & minor refactor 2018-01-15 00:43:28 -05:00
Henrik Lissner
742f5b26ed
Improve popup compatibility for eshell & multi-term 2018-01-07 15:25:35 -05:00
Henrik Lissner
82141f866a
tools/eshell: no hl-line in insert mode 2017-12-04 21:36:49 -05:00
Henrik Lissner
9408062f60
Move some plugins' storage to doom-etc-dir 2017-11-05 01:16:36 +01:00
Henrik Lissner
0479ac3b88
tools/eshell: bugfix + minor refactor
+ Change default name for (doom) eshell buffers
+ Fix eshell splitting commands (referring to incorrect subcommand)
+ Correct aliases (using wrong commands)
+ +eshell/run => +eshell/open
+ +eshell/popup => +eshell/open-popup
+ +eshell/tab => +eshell/open-workspace
+ +eshell/prompt => +eshell-prompt (conform to naming convention)
2017-09-27 14:48:23 +02:00
Benjamin Andresen
279cea5b08 Add: tools/eshell: additional familiar readline bindings 2017-07-21 17:10:58 +02:00
Benjamin Andresen
22c9e2350d Add: tools/eshell: C-d now quits or deletes depending on state
this is the default behavior of bash, zsh et al.
2017-07-21 17:10:56 +02:00
Benjamin Andresen
d0e84e3d41 Fix: tools/eshell: set prompt-regexp to what eshell expects
eshell-prompt-regexp has to be in sync with eshell-prompt-function otherwise
certain eshell behavior will not work properly

For example: eshell-bol
2017-07-21 17:10:53 +02:00
Henrik Lissner
c7254e7bdc
Major optimization refactor, across the board
+ enable lexical-scope everywhere (lexical-binding = t): ~5-10% faster
  startup; ~5-20% general boost
+ reduce consing, function calls & garbage collection by preferring
  cl-loop & dolist over lambda closures (for mapc[ar], add-hook, and
  various cl-lib filter/map/reduce functions) -- where possible
+ prefer functions with dedicated opcodes, like assq (see byte-defop's
  in bytecomp.el for more)
+ prefer pcase & cond (faster) over cl-case
+ general refactor for code readability
+ ensure naming & style conventions are adhered to
+ appease byte-compiler by marking unused variables with underscore
+ defer minor mode activation to after-init, emacs-startup or
  window-setup hooks; a customization opportunity for users + ensures
  custom functionality won't interfere with startup.
2017-06-09 00:47:45 +02:00
Henrik Lissner
29d01756ea tools/eshell: improve popup & term integration 2017-05-12 12:17:01 +02:00
Henrik Lissner
2c68a41adb tools/eshell: set eshell-visual-(sub)?commands properly 2017-05-12 12:17:01 +02:00
Henrik Lissner
c4e404b0bb tools/eshell: set eshell-visual-(sub)?commands 2017-05-10 05:29:56 +02:00
Henrik Lissner
9e084c18ba core-ui: fix doom-hide-modeline-mode resetting on major-mode changes 2017-04-18 05:09:15 -04:00
Henrik Lissner
0e7254d312 General cleanup + refactor 2017-04-17 02:20:07 -04:00
Henrik Lissner
5ae94b765c PRAISE BE TO THE BYTE COMPILER FOR THY SHARP QUOTES 2017-04-17 02:17:10 -04:00
Robert Woods
111f94e408 Fix leftover references to doom|eshell.... 2017-03-02 07:36:16 +10:30
Henrik Lissner
33c88d4f82 Revert macros to ...! name convention (elisp doesn't like @...) 2017-02-23 00:06:12 -05:00
Henrik Lissner
8c173b0a1a Add modules/tools/{dired,eshell} 2017-02-20 00:26:08 -05:00