Commit graph

126 commits

Author SHA1 Message Date
Henrik Lissner
1afc5965df
add-hook! -> add-hook for one-to-one hook 2018-06-10 22:25:29 +02:00
Marcelo dos Santos
ad5afa1ab2 Fix the hook variable 2018-06-09 13:26:36 -03: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
80adb9c1f6
General refactor for consistency & idempotency
Also updated comments
2018-05-18 01:26:41 +02:00
Henrik Lissner
5b80fce905
Merge pull request #473 from jcf/patch-1
Fix magic require of clojure.string
2018-03-24 06:38:34 -04:00
James Conroy-Finn
025ef9a7f8
Add Boot patterns to Clojure's modes 2018-03-24 09:20:22 +00:00
James Conroy-Finn
2d0d41fc1e
Add edn to Clojure mode extensions 2018-03-23 19:19:06 +00:00
James Conroy-Finn
a14b544559
Fix magic require of clojure.string 2018-03-23 19:03:01 +00:00
Henrik Lissner
5570fbb353
lang/clojure: refactor & add :eval/:repl support 2018-03-22 06:54:18 -04:00
Henrik Lissner
5ad4246cb9
lang/clojure: refactor; rainbow-delimiters-mode; :lookup
Also add auto-mode-alist entry for clojurec-mode
2018-02-14 06:08:30 -05:00
Henrik Lissner
08b479b06f
Rename popup parameter escape-quit => quit 2018-01-06 02:42:53 -05:00
Henrik Lissner
91357a3e5d
💥 Replace core-popup with new feature/popup module
This is a breaking change! Update your :popup settings. Old ones will
throw errors!

Doom's new popup management system casts off its shackles (hur hur) and
replaces them with the monster that is `display-buffer-alist`, and
window parameters.

However, this is highly experimental! Expect edge cases.  Particularly
with org-mode and magit (or anything that does its own window
management).

Relevant to #261, #263, #325
2018-01-06 02:17:43 -05:00
Henrik Lissner
12c2208c53
lang/clojure: minor refactor 2017-12-08 01:05:44 -05:00
teesloane
dd0d568694 Remove unecessary keywords in clojure popup config 2017-12-06 13:56:16 -05:00
teesloane
26c16d431b PR review updates: fix repl, remove unidiomatic use-package things. 2017-12-05 09:58:46 -05:00
teesloane
fd40dee579 Add eval buffer shortcut. 2017-11-28 19:37:34 -05:00
teesloane
af5d0d3e4b Add eval at point to clojure mode 2017-11-28 19:29:37 -05:00
teesloane
9317c9bc39 fix broken clj 2017-11-26 17:26:24 -05:00
teesloane
bf9eb03558 add rainbow delimiters when loading clojure mode 2017-11-24 14:45:16 -05:00
teesloane
c10b01ba65 name space auto completion 2017-11-21 13:25:00 -05:00
teesloane
acded8c533 Add clj refactor 2017-11-18 14:54:05 -05:00
teesloane
feb75751bf Add figwheel settings + try and unshackle the repl (no luck yet!) 2017-11-15 08:44:33 -05:00
teesloane
d217db8539 more keybindings 2017-11-15 08:44:33 -05:00
teesloane
56d43a93be Add cljs mode and localleader keybindings 2017-11-15 08:44:33 -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
vijaykiran
f027acdf10 Minimal Clojure lang support 2017-05-30 09:28:38 +02:00