Commit Graph

62 Commits

Author SHA1 Message Date
b8a969361d lang/javascript: remove extra parentheses causing nonvariable error 2017-12-17 00:03:45 -05:00
76a4ae459d Fix obsolete (when|if)-let messages in Emacs 26 2017-12-10 14:49:52 -05:00
f063a08891 Remove :editorconfig setting 2017-12-08 23:14:11 -05:00
9d81bc5a8b Major refactor: use-package-always-defer = nil & use :hook
Possibly breaking change: packages are no longer deferred by default.

Addresses #286
2017-12-08 23:14:11 -05:00
3b9bf9bb44 Fix 'variable reference to nil’ compiler warning 2017-10-05 13:14:25 +02:00
028fd43d75 lang/javascript: major refactor
+ Adds ./node_modules/.bin to exec-path
+ Uses eslint_d globally, if available
+ Always favor local installs of eslint over global eslint or eslint_d

Relevant to #214 #185
2017-10-04 18:02:00 +02:00
e5bd1fe55e Merge pull request #214 from orther/javascript-eslintd-fix
Add project-mode +javascript-eslintd-fix-mode
2017-10-04 15:50:27 +02:00
5c340f0218 Remove redundant +javascript/refactor-menu 2017-10-03 20:46:19 +02:00
3b36f52db4 lang/javascript: add +javascript/refactor-menu 2017-10-03 03:00:34 +02:00
ed76cfda99 General lang refactor; new refactor, help, build & test menus 2017-10-03 02:58:09 +02:00
d0fcb23314 Replace feature/eval build system with def-menu! 2017-10-03 02:58:09 +02:00
ad29a2253f Remove accidentally added parts to javascript module 2017-09-30 02:23:03 -07:00
dd97e10aa0 Remove flycheck js2 errors if eslint available.
Flycheck has it's own trailing command and semicolon warning that was
conflicting with the eslint settings. Now it disables those warnings if
eslint.js is setup for flycheck.
2017-09-30 02:20:25 -07:00
3938a58bbb Add project-mode +javascript-eslintd-fix-mode
This adds code formating on save using eslint --fix functionality. It uses the
emacs package eslintd-fix which uses the npm package eslint_d.js.
2017-09-28 01:55:47 -07:00
58198acf18 Refactor magic-mode-alist entries for rjsx-mode, c++-mode & objc-mode 2017-09-20 01:34:47 +02:00
3fcbdae441 Make doom-project-{p,root} functions simpler
+ doom-project-root and doom-project-p no longer takes arguments
+ Remove doom*project-root advice
2017-09-20 01:33:31 +02:00
d28c64b4fa General refactor & cleanup 2017-09-02 16:39:51 +02:00
8f00b3d07a Minor general refactor 2017-06-20 16:32:50 +02:00
392c58ea47 General refactor & cleanup 2017-06-19 00:32:45 +02:00
bc3aee2a4f Replace :xref-backend setting with :jump
Which takes :definitions, :references, :documentation and :xref-backend.
Each accepts a function that will jump to definitions, references, and
documentation respectively.

If a major-mode has an :xref-backend, you don't need :definitions or
:references.
2017-06-19 00:32:45 +02:00
a2ca21cc21 Add doom*project-root advice fn 2017-06-19 00:03:37 +02:00
9c9e410898 Use :editorconfig to set js-switch-indent-offset
Instead of a hook.
2017-06-18 23:43:07 +02:00
78f5306274 Lazy-load lang/javascript/+screeps.el 2017-06-18 23:43:07 +02:00
4eb2a7cb41 General refactor + cleanup 2017-06-16 02:10:33 +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
5ae94b765c PRAISE BE TO THE BYTE COMPILER FOR THY SHARP QUOTES 2017-04-17 02:17:10 -04:00
d67d50d764 lang/javascript: improve electric indentation for js2-mode & rjsx-mode 2017-04-08 03:43:36 -04:00
8e5683eaa2 lang/{javascript,cc}: fix empty buffer-file-name in magic-mode-alist 2017-04-07 19:24:47 -04:00
648c4c1d3b Update lang modules' :build settings 2017-04-07 01:46:33 -04:00
a0ae976555 lang/javascript: more intelligent JSX detection 2017-04-04 03:36:21 -04:00
5f8cbd751a Remove references to doom/append-semicolon; use evil append mode instead 2017-04-03 13:17:35 -04:00
67efcb597f lang/{javascript,php}: fix doc comment sp pairs 2017-04-03 03:12:49 -04:00
53b9e92fd7 lang/{web,javascript}: remove +web-bower-mode; refactor react, phaser & angular detection 2017-04-01 23:54:30 -04:00
dd8c3d0d1e lang/javascript: expand +javascript-npm-mode to html-mode & css-mode derivatives 2017-04-01 23:35:12 -04:00
1175fb60e7 lang/javascript: add +javascript-phaser-mode 2017-04-01 23:33:04 -04:00
787bff853a lang/javascript: new :mode for rjsx-mode 2017-03-30 15:19:28 -04:00
d6db681e30 lang/javascript: redo skewer-mode keybindings 2017-03-30 15:19:10 -04:00
de61d68652 rjsx-mode: remove electric <, replace with snippets; enable emmet-mode in rjsx-mode 2017-03-29 23:46:35 -04:00
ef0b03325f lang/javascript: fix tern's project detection (use projectile instead) 2017-03-27 13:05:53 -04:00
b1ec00228b lang/javascript (flycheck): disable jshint in rjsx-mode 2017-03-25 16:41:20 -04:00
74effe1857 lang/javascript (flycheck): favor local eslint over global, if available 2017-03-25 16:41:01 -04:00
ec4442a59e lang/javascript: jsx-mode => rjsx-mode (better integration with js2-mode) 2017-03-25 04:04:16 -04:00
ca61940ab2 lang/javascript: attach +javascript-{npm,lb6}-mode to js2-mode instead of js-mode 2017-03-25 04:03:57 -04:00
115b126a25 lang/javascript: highlight-indent-guides-mode => highlight-indentation-mode 2017-03-25 04:03:28 -04:00
378469b15e lang/javascript: add skewer-mode 2017-03-24 15:01:03 -04:00
495b0d0016 lang/{javascript,web}: add web-beautify plugin 2017-03-23 15:47:07 -04:00
0243229690 lang/javascript: add +javascript-gulp-mode project 2017-03-23 15:46:17 -04:00
c4c123a7d0 lang/javascript: fix :electric setting 2017-03-22 00:08:49 -04:00
3e63d2d23b Reduce def-package magic; explicitly use :when property 2017-03-19 22:47:50 -04:00
8b2ae30c35 lang/javascript: add xref support + refactor 2017-03-15 22:59:49 -04:00