Commit Graph

27 Commits

Author SHA1 Message Date
Henrik Lissner
9b25582be1
Reduce list of root files projectile searches for
And define them on a per-module basis. This reduces the number of file
checks it performs, particularly for non-project files.

Might help #1317
2019-10-19 22:22:49 -04:00
Henrik Lissner
11a6c03d69
Standardize naming of repl handler commands 2019-10-07 14:08:58 -04:00
Henrik Lissner
051bceb0a8
Refactor localleader keybinds #1270
Introduces a select few of the localleader keybind standards proposed in
issue #1270, corrects a few typos and introduces more localleader
keybinds in general.

Co-authored-by: yuhan0 <>
2019-10-04 22:04:47 -04:00
Henrik Lissner
2d365619cd
General refactor & cleanup, across the board 2019-09-13 22:00:34 -04:00
Tej Chajed
5dc1ad0033
lang/racket: Fix bug in configuration 2019-07-28 17:07:17 -04:00
Tej Chajed
55b9c1f171
lang/racket: Fix smart open bracket insertion
`racket-smart-open-bracket-enable` has been replaced by a function that
inserts the right type of bracket (see
669275b3a6),
which we need to bind to [.
2019-07-28 10:27:38 -04:00
Tej Chajed
592bb13496
lang/racket: set lookup handler to find definition 2019-07-26 14:43:57 -04:00
Henrik Lissner
a3e262c7ac
💥 Refactor add-hook! macro & change arg order
This update may potentially break your usage of add-hook! if you pass
the :local or :append properties to it. This is how they used to work:

  (add-hook! :append 'some-mode-hook #'do-something)

Thsoe properties must now follow the hooks, e.g.

  (add-hook! 'some-mode-hook :append #'do-something)

Other changes:
- Various add-hook calls have been renamed to add-hook! because I
  incorrectly assumed `defun` always returned its definition's symbol,
  when in fact, its return value is "undefined" (so sayeth the
  documentation). This should fix #1597.
- This update adds the ability to add multiple functions to hooks
  without a list:

    (add-hook! 'some-mode-hook
               #'do-something
               #'do-something-else)

- The indentation logic has been changed so that consecutive function
  symbols at indented at the same level as the first argument, but forms
  are indent like a defun.

    (add-hook! 'some-mode-hook
               #'do-something
               #'do-something-else)

    (add-hook! 'some-mode-hook
      (message "Hello"))
2019-07-26 20:17:29 +02:00
Henrik Lissner
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
Henrik Lissner
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
Henrik Lissner
fd8f8c5108
feature/lookup: rewrite dash docset integration
+ Uses alist variable to store config, rather than hooks
+ Added check for installed docsets in +lookup/documentation
+ Set docsets for various language modules (c-mode, c++-mode, css-mode,
  scss-mode, sass-mode, web-mode, go-mode, racket-mode, emacs-lisp-mode,
  js2-mode, rjsx-mode, typescript-mode, rust-mode, and php-mode)
+ Made *eww* popups for dash docsets larger
+ Renamed set-docset! => set-docsets! (set-docset! is aliased to
  set-docsets!)
+ New +lookup/install-docset alias
2018-08-31 02:49:48 +02:00
Henrik Lissner
edc9bf70af
Delete trailing whitespace, globally, by default
Also adds doom|disable-delete-trailing-whitespace hook, which can be
used to disable this behavior on a per-buffer basis. If you want to turn
off this global behavior:

  (remove-hook 'write-file-functions #'delete-trailing-whitespace)
2018-08-30 20:36:15 +02:00
Henrik Lissner
743e43add1
lang/racket: redo keybinds
+ Improve verbal mneumonics and enforce localleader conventions (e.g. h
  = help, g = goto)
+ Remove keybinds that other features replace (like smartparens or
  lookup handlers).
+ Alphabetize keybinds for easier skimming.
2018-08-19 00:09:04 +02:00
Henrik Lissner
99815f8b98
lang/racket: more sensible lookup handlers
definition: racket-visit-definition
documentation: racket-describe
2018-08-19 00:08:32 +02:00
Henrik Lissner
81c3f3f024
lang/racket: remove redundant localleader keybinds
These already exist on TAB (for all users) and gc/= for evil users (or
M-;/C-M-\ for non-evil users).
2018-08-18 23:51:58 +02:00
Henrik Lissner
a3c0985aa0
lang/racket: remove keybind :desc properties #814 2018-08-18 23:50:28 +02:00
Henrik Lissner
b8f1b90744
Remove set-company-backend!
Since racket-mode uses company-capf, it isn't necessary to set any default backends for it.
2018-08-13 23:57:10 +02:00
Henrik Lissner
f143a03221
Use set-company-backend!
Fixes incorrect usage of setq-local in a global context.
2018-08-13 02:59:38 +02:00
Marcelo dos Santos
2f7282af12 Input-method optional 2018-08-12 13:52:35 -03:00
Marcelo dos Santos
36ac08f3fa Company-capf needs to be the first 2018-08-12 13:13:25 -03:00
Henrik Lissner
c24a3671b1
lang/racket: setq racket-smart-open-bracket-enable
Instead of doing so in a hook (which is harder to customize).

Addresses #772
2018-07-30 02:57:50 +02:00
Henrik Lissner
253660095f
lang/racket: minor reformatting 2018-07-29 19:31:33 +02:00
Henrik Lissner
53b246ef8c
Remove racket-mode eval handler
The quickrun package already defines it.
2018-07-29 19:31:33 +02:00
Henrik Lissner
66056e7a5d
Move ob-racket to lang/org & cleanup
+ Remove redundant ob-crystal block
+ Move ob-ipython into separate section
+ Move ob-racket from lang/racket
2018-07-29 19:31:32 +02:00
Henrik Lissner
960bde480d
Install ob-racket conditionally
I'll move this to lang/org/packages.el later (not easy to do from the github text editor).
2018-07-29 17:29:27 +02:00
Henrik Lissner
238e37a171
lang/racket: refactor and cleanup
+ Removed highlight-quoted block because `highlight-quoted-mode` is already autoloaded by the package
+ Removed org-babel-do-load-languages because lang/org/+babel already has a built-in autoloader for ob-* packages.
+ Removed flycheck-mode from racket-mode hook because it is enabled globally in :feature syntax-checker
+ Removed highlight-numbers-mode from racket-mode-hook because it is enabled on prog-mode-hook in core-ui (as of #770)
+ Fix racket popup rule regexp
+ Remove popup rules that were redundant with the defaults
+ Remove racket-mode-specific company-frontends value, looks like personal preference, otherwise should be set in a separate hook function that is easily recognized and disabled, if the user desires.
+ Remove :interpreter and :mode properties because they are already registered by the racket-mode package.
+ Move racket-unicode-input-method-enable into :hook property (to defer the config)
2018-07-29 17:22:01 +02:00
Marcelo dos Santos
d8cd4bdf03 Add Racket lang 2018-07-29 10:50:17 -03:00