Commit graph

19 commits

Author SHA1 Message Date
Henrik Lissner
7d3ffdff06
Remove third line in section headers
This is truly important stuff. We've saved many lives with this update.
2018-09-09 09:58:19 -04:00
Henrik Lissner
391ac1cae5
Leverage cache in tide-project-root advise 2018-08-13 21:47:56 +02:00
Henrik Lissner
12c5490a39
Add node_modules/.bin to exec-path regardless #798
Before, this was conditional to the directory's existence. Add it
anyway, in case the folder is created while the buffer is open.

This may cause a problem is the project root changes while the buffer is
open, but for that case there's M-x doom/reload-project.
2018-08-11 01:59:38 +02:00
Henrik Lissner
ffabd2687b
lang/javascript: refactor & document +javascript/cleanup-tide-processes 2018-05-09 12:49:09 +02:00
Henrik Lissner
595d6215d2
lang/javascript: general refactor
+ No need for some rjsx-mode hooks, when it is derived from js2-mode
  (thus, js2-mode hooks will run in rjsx-mode).
+ Reorganized package configs with major modes at the top.
+ Fix incorrect usage of add-hook! with three arguments for rjsx-mode.
2018-04-20 02:47:02 -04:00
Henrik Lissner
9e45ad670c
lang/javascript: add autoloaded cleanup & project-root functions
Forgot to add this to 605c897d
2018-04-19 01:14:01 -04:00
Henrik Lissner
cc5bfc6dc0
lang/javascript: conform to naming conventions; refactor tide config 2018-04-18 18:04:49 -04:00
taylor
8af94e8731 [*] Removes tern in favor of tide, adds node modules to path to execute things like flow, prettier, etc 2018-04-18 17:26:50 +00:00
Henrik Lissner
31a4244686
Rethink what Doom loads at startup and manually
Better to simply load what we need, when we need it, rather than set up
autoloads for every litte thing.
2018-01-07 00:15:57 -05:00
Henrik Lissner
76a4ae459d
Fix obsolete (when|if)-let messages in Emacs 26 2017-12-10 14:49:52 -05: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
1062a15d8c lang/javascript: fix +javascript-npm-dep-p to accept symbols 2017-04-02 23:02:50 -04:00
Henrik Lissner
53b9e92fd7 lang/{web,javascript}: remove +web-bower-mode; refactor react, phaser & angular detection 2017-04-01 23:54:30 -04:00
Henrik Lissner
378469b15e lang/javascript: add skewer-mode 2017-03-24 15:01:03 -04:00
Henrik Lissner
3722f17808 lang/javascript: remove +javascript/install (replaced by bootstrap) 2017-03-20 03:47:59 -04:00
Henrik Lissner
3ac1d382be Fix project mode definitions 2017-03-02 18:28:46 -05:00
Henrik Lissner
e14e25ecb4 Update modules/lang/* 2017-02-20 00:26:08 -05:00
Henrik Lissner
5dc174f41c javascript: conform to v2 module format 2017-02-20 00:23:07 -05:00
Henrik Lissner
566fd39cf9 lang/javascript: update for v2.0 2017-02-20 00:23:03 -05:00