Commit graph

31 commits

Author SHA1 Message Date
Henrik Lissner
ae95b9e8d5
lang/sh: improve zsh shebang detection regexp 2018-05-25 00:52:37 +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
aef9724324
Add doom*shut-up advisor to core-lib 2018-04-23 00:03:28 -04:00
Henrik Lissner
8c5286f2dc
lang/sh: silence indentation messages 2018-02-02 20:47:34 -05:00
Henrik Lissner
8428433898
lang/sh: tweak interpolation + builtin fontification 2017-11-05 21:25:49 +01:00
Henrik Lissner
d7a562faf5
lang/sh: remove tail & tee from +sh-builtin-keywords 2017-11-05 21:25:01 +01:00
Henrik Lissner
2b13451ea8
lang/sh: recognize functions w/ dashes in imenu 2017-10-21 14:49:57 +02:00
Henrik Lissner
d0484c2ae7
lang/sh: fix unfontified character next to subshells 2017-10-18 18:24:25 +02:00
Henrik Lissner
988ae683dd
lang/sh: improve variable highlighting in quotes 2017-10-18 00:02:13 +02:00
Henrik Lissner
1e95dc530a
Add zunit file template & file extension 2017-10-06 02:37:24 +02:00
Henrik Lissner
bb5907cadb
Rethink smartparens config #181
+ Parts of my smartparens config that were personal preference have been
  moved to my private module.
+ The css-mode config was redundant and was removed
+ Moved lang-specific config to their respective modules
+ Markdown config was redundant with native electric support, and thus
  removed.
2017-09-02 16:11:21 +02:00
Henrik Lissner
1b8970786d
lang/sh: remove unused setup.sh 2017-08-21 21:55:34 +02:00
Henrik Lissner
4ff80cf416
Add READMEs for several modules 2017-08-21 21:51:29 +02:00
Henrik Lissner
b9d73a6602
Add company-files backend to sh-mode 2017-07-05 18:20:45 +02:00
Henrik Lissner
1fd27f16b3
lang/sh: add keywords for fontification 2017-06-20 23:33:22 +02:00
Henrik Lissner
f4e3080432
lang/sh: improve zsh buffer detection 2017-06-20 16:25:46 +02:00
Henrik Lissner
02bfb73264
lang/sh: improve fontification for sh-mode
+ Fontify variables in double quotes (better)
+ Fontify command substitution in double quotes
+ Fontify built-in/common commands (see `+sh-builtin-keywords`)
2017-06-20 16:25:46 +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
117e55f0c2 General cleanup + refactor 2017-05-29 01:05:34 +02:00
Henrik Lissner
e8d454a251 Add doom-ui-mode-names for renaming major-modes 2017-05-28 16:13:55 +02:00
Henrik Lissner
ce49f94bbe Remove doom-bootstrap system (will be replaced) 2017-05-20 18:40:13 +02:00
Henrik Lissner
5ae94b765c PRAISE BE TO THE BYTE COMPILER FOR THY SHARP QUOTES 2017-04-17 02:17:10 -04:00
Henrik Lissner
72698ca9e8 Add :requires prop to def-bootstrap! & refactor+rewrite bootstrapping 2017-03-25 18:41:29 -04:00
Henrik Lissner
2a377b44f1 Use s.el instead of subr-x string funcs 2017-03-25 01:45:23 -04:00
Henrik Lissner
700f463ee0 lang/sh: refactor 2017-03-20 21:15:18 -04:00
Henrik Lissner
804aba93f5 Implement bootstrap functionality + make bootstrap (WIP) 2017-03-20 02:45:39 -04:00
Henrik Lissner
3e63d2d23b Reduce def-package magic; explicitly use :when property 2017-03-19 22:47:50 -04:00
Henrik Lissner
33c88d4f82 Revert macros to ...! name convention (elisp doesn't like @...) 2017-02-23 00:06:12 -05:00
Henrik Lissner
afc5b622bb Refactor :electric setting 2017-02-20 20:55:21 -05:00
Henrik Lissner
e14e25ecb4 Update modules/lang/* 2017-02-20 00:26:08 -05:00
Henrik Lissner
f453b3cee1 Reorganize modules 2017-02-20 00:23:03 -05:00