Commit Graph

45 Commits

Author SHA1 Message Date
c1c3a0987c Better move-to-prompt-on-insert-mode hook for eshell 2018-05-26 21:09:10 +02:00
177bf2a9de Fix evil change/delete operators in eshell buffers
evil-{change,delete}{,-line} now jump to the prompt before trying to
modify the buffer.
2018-05-26 21:09:10 +02:00
0348686cce tools/eshell: change split behavior to open non-eshell window 2018-05-25 01:00:04 +02:00
cce30367bb tools/eshell: fix naive path concatenation for eshell-directory-name 2018-05-25 00:58:09 +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
b1dce548ad tools/eshell: consider eshell buffers real 2018-05-18 01:26:41 +02:00
8807471846 tools/eshell: fix parameters being set on the wrong window
This would cause find-file commands to ignore certain windows, as well
as eshell buffers closing the incorrect window when they are quit.

Addresses #593
2018-05-18 01:26:41 +02:00
5ab790c07d tools/eshell: default to ~/.doom.d/eshell or ~/.eshell 2018-05-15 01:57:40 +02:00
ba2fb4a82d tools/eshell: remove custom aliases
That belongs in my private module
2018-05-15 01:33:22 +02:00
a3800f3949 tools/eshell: set eshell-directory-name if ~/.doom.d/eshell exists 2018-05-15 01:33:07 +02:00
84fc356e40 tools/eshell: dedicate eshell windows
Disallow commands to change their buffer non-interactively.
2018-05-15 01:32:08 +02:00
42e44a6cc9 tools/eshell: autoload custom faces & add :group 2018-05-14 13:05:03 +02:00
cc658beb9e tools/eshell: remove unused lexical var 2018-04-02 06:17:49 -04:00
43830a8498 tools/eshell: fix typo in condition in +eshell/switch
Also changes behavior to select the selected eshell window if it's
already open.
2018-03-28 19:07:52 -04:00
08976dafdd tools/eshell: fix +eshell/switch 2018-03-28 17:32:35 -04:00
3fb7b24544 tools/eshell: fix overeager cleanup deleting other windows along with eshell 2018-03-28 17:32:26 -04:00
c87122e6b4 tools/eshell: refactor; don't open another eshell from eshell 2018-03-24 23:19:14 -04:00
3f88909d52 tools/eshell: refactor; rename split commands; switch to new buffers properly 2018-03-24 17:51:55 -04:00
a067500ef2 tools/eshell: spawn new eshell on split window 2018-03-24 17:07:38 -04:00
a6cc5a219b tools/eshell: major refactor; add eshell management commands 2018-03-24 17:05:06 -04:00
38a5e73e2e tools/eshell: major refactor & update 2018-03-23 18:17:59 -04:00
45c2221316 General update for docstrings and comments & minor refactor 2018-01-15 00:43:28 -05:00
742f5b26ed Improve popup compatibility for eshell & multi-term 2018-01-07 15:25:35 -05:00
b681917082 Remove/replace references to doom-popup-buffer 2018-01-06 03:27:23 -05:00
76a4ae459d Fix obsolete (when|if)-let messages in Emacs 26 2017-12-10 14:49:52 -05:00
82141f866a tools/eshell: no hl-line in insert mode 2017-12-04 21:36:49 -05:00
9408062f60 Move some plugins' storage to doom-etc-dir 2017-11-05 01:16:36 +01:00
6b9849fd57 Add conditional autoload/compile cookies #229 2017-11-05 01:16:35 +01:00
e04bdc70d7 tools/eshell: fix +eshell:run 2017-09-27 14:48:24 +02:00
838615eb0c tools/eshell: add command argument to eshell open commands 2017-09-27 14:48:23 +02:00
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
ce50ddd563 Fix: tools/eshell: get rid of compile warnings in quit-or-delete-char 2017-07-22 00:15:01 +02:00
279cea5b08 Add: tools/eshell: additional familiar readline bindings 2017-07-21 17:10:58 +02:00
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
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
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
29d01756ea tools/eshell: improve popup & term integration 2017-05-12 12:17:01 +02:00
2c68a41adb tools/eshell: set eshell-visual-(sub)?commands properly 2017-05-12 12:17:01 +02:00
c4e404b0bb tools/eshell: set eshell-visual-(sub)?commands 2017-05-10 05:29:56 +02:00
9e084c18ba core-ui: fix doom-hide-modeline-mode resetting on major-mode changes 2017-04-18 05:09:15 -04:00
0e7254d312 General cleanup + refactor 2017-04-17 02:20:07 -04:00
5ae94b765c PRAISE BE TO THE BYTE COMPILER FOR THY SHARP QUOTES 2017-04-17 02:17:10 -04:00
111f94e408 Fix leftover references to doom|eshell.... 2017-03-02 07:36:16 +10:30
33c88d4f82 Revert macros to ...! name convention (elisp doesn't like @...) 2017-02-23 00:06:12 -05:00
8c173b0a1a Add modules/tools/{dired,eshell} 2017-02-20 00:26:08 -05:00