Commit Graph

72 Commits

Author SHA1 Message Date
19ecf8e46a Correct last inline hook defuns
See a3e262c7 for rationale
2019-07-28 16:10:53 +02:00
76cacb5bfe 💥 Rename def-package! -> use-package!
Calling this pivotal macro "def-package!" has frequently been a source
of confusion. It is a thin wrapper around use-package, and it should be
obvious that it is so. For this reason, and to match the naming
convention used with other convenience macros/wrappers, it is now
use-package!.

Also changes def-package-hook! -> use-package-hook!

The old macros are now marked obsolete and will be removed when straight
integration is merged.
2019-07-23 12:50:45 +02:00
56e1dfe9bb lang/clojure: copy nrepl-server errors to repl
Makes them easier to notice!
2019-07-22 02:37:45 +02:00
a201409fdd Minor refactors across the board 2019-07-10 21:27:12 +02:00
1c976dc0e4 Minor, general refactors
Also rename custom lookup handlers for consistency and use the new
inline :async property instead.
2019-05-02 17:57:31 -04:00
237e14ae7b lang/clojure: fix lookup-def handler #1360 2019-04-24 21:32:26 -04:00
77e4cc4d58 💥 Remove :feature category
:feature was a "catch-all" category. Many of its modules fit better in
other categories, so they've been moved:

- feature/debugger -> tools/debugger
- feature/evil -> editor/evil
- feature/eval -> tools/eval
- feature/lookup -> tools/lookup
- feature/snippets -> editor/snippets
- feature/file-templates -> editor/file-templates
- feature/workspaces -> ui/workspaces

More potential changes in the future:

- A new :term category for terminal emulation modules (eshell, term and
  vterm).
- A new :os category for modules dedicated to os-specific functionality.
  The :tools macos module would fit here, but so would modules for nixos
  and arch.
- A new :services category for web-service integration, like wakatime,
  twitter, elfeed, gist and pastebin services.
2019-04-24 18:16:04 -04:00
dfad10e843 Set Clojure lookup handlers for specific minor modes to avoid overwriting
Fixes issue #1357 https://github.com/hlissner/doom-emacs/issues/1357
2019-04-24 18:03:56 +03:00
3eb9caf167 Add some maps in cider-repl major mode 2019-04-18 20:59:46 -03:00
8cce11fc82 Fix SPC m r c in clojure-mode
Map it to 'cider-find-and-clear-repl-output instead of
'cider-repl-clear-buffer (that does not work inside Clojure
buffer).
2019-04-18 20:58:09 -03:00
093dddff4a lang/clojure: minor refactor 2019-03-12 12:28:57 -04:00
7c9e96da87 General module refactor 2019-03-02 02:04:11 -05:00
69ed1a4a99 feature/{syntax-checker,spellcheck} -> tools/fly{check,spell} 2019-02-22 00:25:30 -05:00
ec55884aae General, minor reformatting & refactor 2019-02-18 00:47:46 -05:00
a9f2aadd94 Merge pull request #1142 from gsnewmark/add-descriptions-to-clojure-mode-map
Add descriptions for clojure-mode map
2019-02-16 01:21:44 -05:00
bab37d3047 Fix Clojure def/doc lookup handlers, add references one 2019-01-26 15:34:32 +02:00
6750c84af5 Add descriptions for clojure-mode map 2019-01-26 15:06:14 +02:00
379a45978c lang/clojure: remove :n from cjr-help-menu hydra
They're ignored anyhow.
2019-01-05 15:05:49 -05:00
3f195614d9 Normalize :leader/:localleader keybinds
Evil states no longer apply to them. Also removes x-alt-keysym.
2018-12-23 23:54:27 -05:00
a1e8fde75c Removed :select nil from cider-repl popup rules 2018-11-13 21:29:16 -05:00
036a645058 lang/clojure: move command to autoload.el 2018-10-16 02:49:21 -04:00
bef0f39535 lang/clojure: conform command to naming convention
Interactive commands in doom follow the `+module/name` naming convention. `+module|name` is used for hook functions.
2018-10-16 02:07:00 -04:00
4fc7de442e lang/clojure: group & update evil integration
Also removes evil-normalize-keymaps on cider-repl-mode-hook, because cider-repl-mode isn't a minor mode. The purpose of evil-normalize-keymaps is to ensure evil is aware of evil keybinds in minor-mode keymaps when it is first enabled.
2018-10-16 02:03:23 -04:00
a25257d8da lang/clojure: remove fuzzy completion for company
I prefer that fuzzy search is disabled by default, for consistency and performance. Fuzzy search tends to be much significantly slower, and no other company backend offers a fuzzy search mechanism (or should).

Fuzzy search is usually gated behind variables and flags, but since opting in here is a trivial one-liner, I don't think it needs one.
2018-10-16 01:55:38 -04:00
bd1f2ec4d6 lang/clojure: More changes
- Add a popup rule for the history buffer, since we want to see the REPL change while it's open
- Add hooks to enable company fuzzy completion
- Add more cider configuration options
- Configure Shift-Return to insert a newline and indent in the REPL without submitting the result
- Bind normal state keybindings for the CIDER history buffer
2018-10-15 23:08:59 -04:00
5ad27da2f1 lang/clojure: add binding to switch/set namespace
Add a local leader keybinding to both switch to the CIDER REPL buffer and set the namespace according to the file buffer.
2018-10-15 18:43:56 -04:00
db7632b2b6 lang/clojure: persist cider repl history
Credit to @mfiano
2018-10-15 16:22:53 -04:00
cade77e4a9 lang/clojure: bind cider-jack-in to clojure-mode
cider-quit kills cider-mode, rendering cider-mode-map keybinds
unavailable, so these commands have been moved to clojure-mode-map, to
ensure they're always available.

Reported by @mfiano
2018-10-15 16:22:53 -04:00
1c847402c4 lang/clojure: fix eldoc support in clojure-mode 2018-10-15 00:50:39 -04:00
215ef4595c Added cider config and key bindings 2018-10-07 22:20:18 -04:00
cdf745e72a map!: remove buffer-local :desc properties
which-key labels are registered globally, and will not work for
buffer-local keybinds. Until general is brought in, we'll have to suffer
label-less localleader keybinds.
2018-10-07 21:34:24 -04:00
1535a8d64a lang/clojure: move flycheck-joker block 2018-09-09 16:35:16 -04:00
59b1f7cd9b Merge pull request #873 from mattly/clojure-flycheck-joker
Syntax-checking for clojure via joker
2018-09-09 16:34:43 -04:00
ca033e714c Remove +joker flag for clojure layer
Flycheck apparently won't complain if joker isn't installed
2018-09-09 10:15:20 -07:00
533355d7d5 lang/clojure: fix evil keybinds in cider repl 2018-09-09 09:58:21 -04:00
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
1f581a4e36 Add option for flycheck-joker for clojure
This is provided as a +feature on clojure because joker is not included
in the standard clojure distribution, and I wouldn't assume a given
clojurist has or wants to have it installed. But I think installing it
is the least-fuss option for syntax-checking clojure/script code in
emacs with flycheck.
2018-09-07 20:35:29 -07:00
e28fea3777 Fix clj-refactor bindings 2018-09-08 03:55:11 +03:00
765a078685 Merge branch 'develop' of https://github.com/hlissner/doom-emacs into develop 2018-08-19 14:29:21 -05:00
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
74e905cb68 added refactor shortcut to clojure 2018-08-09 21:22:55 -05:00
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
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
c0251aacee Replace :lookup with set-lookup-handlers! autodef
And update all internal references.
2018-06-15 17:27:48 +02:00
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
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
1afc5965df add-hook! -> add-hook for one-to-one hook 2018-06-10 22:25:29 +02:00
ad5afa1ab2 Fix the hook variable 2018-06-09 13:26:36 -03:00
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
80adb9c1f6 General refactor for consistency & idempotency
Also updated comments
2018-05-18 01:26:41 +02:00