Commit graph

34 commits

Author SHA1 Message Date
hackeryarn
765a078685 Merge branch 'develop' of https://github.com/hlissner/doom-emacs into develop 2018-08-19 14:29:21 -05:00
Henrik Lissner
6d1db77fae
Refactor lang/clojure & fix clojure handlers
Ensure repl/eval/lookup handlers are set soon enough to take effect in
first buffer.
2018-08-19 01:12:24 +02:00
hackeryarn
74e905cb68 added refactor shortcut to clojure 2018-08-09 21:22:55 -05:00
Benjamin Andresen
7b0d57a745 Cut: lang/clojure: unneeded + subjective parts
str => clojure.string is already defined in `cljr-magic-require-namespaces'
re-frame + reagent is subjective (for personal configuration)

fighweel aspect is now handled upstream by giving a prompt
see: `cider-cljs-repl-types'
2018-06-23 18:44:50 +02:00
Henrik Lissner
6808c46b58
💥 Change set-popup-rule! usage
Now accepts a flat plist of all its former parameters, including new
:parameters and :actions properties to increase your control over the
fate of your windows.

The old usage of set-popup-rule! is deprecated and may not work right!

The :ui popup module has also seen a major refactor to improve
efficiency and load times.

Sorry! This is the last "big" change before 2.1!
2018-06-18 02:34:16 +02:00
Henrik Lissner
c0251aacee
Replace :lookup with set-lookup-handlers! autodef
And update all internal references.
2018-06-15 17:27:48 +02:00
Henrik Lissner
588359cc5f
Replace :eval/:repl with autodef functions
+ :eval => set-eval-handler!
+ :repl => set-repl-handler!
+ Updates all internal references.
2018-06-15 16:20:20 +02:00
Henrik Lissner
d8b1e469bc
Introduce autodefs to replace some settings
+ :popup -> set-popup-rule!
+ :popups -> set-popup-rules!
+ :company-backend -> set-company-backend!
+ :evil-state -> set-evil-initial-state!

I am slowly phasing out the setting system (def-setting! and set!),
starting with these.

What are autodefs? These are functions that are always defined, whether
or not their respective modules are enabled. However, when their modules
are disabled, they are replaced with macros that no-op and don't
waste time evaluating their arguments.

The old set! function will still work, for a while.
2018-06-15 03:42:01 +02:00
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