Commit Graph

1447 Commits

Author SHA1 Message Date
d7f10cbcbd lang/cc: fix brace-list argument block indentation
Should be

fn({
    ...
})

Instead of

fn({
        ...
    })
2019-01-14 00:50:33 -05:00
957aa9c63e lang/cc: make ffap aware of irony include paths 2019-01-14 00:49:58 -05:00
069c196330 Appease byte-compiler senpai
Please notice me
2019-01-08 20:54:03 -05:00
7645f843ac lang/javascript: mode-name = JS2
A shorter name looks nicer in the modeline.
2019-01-08 00:38:05 -05:00
37cb0e178c Make set-lookup-handlers! additive
Consecutive calls to set-lookup-handlers! would redefine *all* lookup
handlers, unsetting unspecified ones, so you were forced to redefine all
handlers, even if you only wanted to change one. No more. Its side
effects are now additive.

Also adds :async handler support, however, due to their nature, they
cannot fall back to other handlers (there's no reliable way to detect
they worked or not).

To get around this, write a blocking wrapper around the old async method
and register it as a non-async handler.
2019-01-08 00:33:38 -05:00
9916025d5c lang/cc: rewrite README 2019-01-05 19:46:14 -05:00
681145e6b5 Defer tide-mode init until file exists
This ensures that tide-mode won't activate for file-less JS buffers,
which are error prone. But once the file is saved, it will consider
activating itself.
2019-01-05 17:49:04 -05:00
b56639e31b Remove deprecated set! & def-setting! macros 2019-01-05 17:48:46 -05:00
9f249de569 lang/latex: remove +latex-bibtex-file
An unnecessary layer of abstraction on top of two straight-forward
variables, reftex-default-bibliography and
bibtex-completion-bibliography.
2019-01-05 17:46:37 -05:00
c3c9c01bad lang/latex: rewrite README 2019-01-05 17:45:42 -05:00
379a45978c lang/clojure: remove :n from cjr-help-menu hydra
They're ignored anyhow.
2019-01-05 15:05:49 -05:00
05e52b7e29 Merge pull request #1088 from UndeadKernel/fix_latex_and_flyspell
latex: enable flyspell correctly in latex buffers
2019-01-03 13:06:18 -05:00
de2e41774f latex fix: enable spell checking correctly
The varible `TeX-mode-local-vars-hook` is not called correctly as AucTeX
reports that the major mode in a LaTeX file is `latex-mode`. Instead,
let's use `latex-mode-local-vars-hook` to enable flyspell.

This change enables disabling the feature of flyspell of immediately
spellchecking a document with:

`(setq-hook! 'TeX-mode-hook +spellcheck-immediately nil)`
2019-01-03 13:49:00 +01:00
fbf2a29ebe lang/go: reformat README (WIP) 2019-01-03 02:01:57 -05:00
6e57350277 lang/org: restore meta return keybinds 2018-12-31 15:57:06 -05:00
c82f71e7fe lang/haskell: disable subword-mode by default
subword-mode is enabled by default for no other language, nor is it the
default behavior in vim (and it affects evil word motions), so it should
be opt-in.

Mentioned in #1083
2018-12-29 21:06:49 -05:00
937252af4e lang/csharp: add +unity flag
And group shader-mode & +csharp-unity-mode under it.
2018-12-29 00:09:17 -05:00
d87fba7944 lang/javascript: remove screeps
Moved it to my private config. This is more of a customization than
something this module should offer support for.
2018-12-28 23:54:23 -05:00
8323b6922d Merge pull request #1069 from amcleodca/update-go-mode-map
Add descriptions for go-mode map
2018-12-27 01:59:59 -05:00
3befcf934e Make +haskell-repl-buffer arg optional 2018-12-26 14:53:08 -05:00
1c20e33e03 Add descriptions for go-mode map
Makes the map for go-mode easier to discover.
2018-12-26 16:57:53 +00:00
448f2e55e5 lang/org: update localleader keybinds
To better suit the new map!
2018-12-25 02:32:53 -05:00
70a4db49d1 lang/org: fix C-S-return & S-s-return keybinds 2018-12-24 02:43:32 -05:00
f9b72545b7 Replace def-org-file-link! with function
A macro is overkill for this.
2018-12-23 23:55:14 -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
29f119ad4d Hook +javascript-npm-mode into typescript-mode
This way typescript projects will be aware of node_modules.
2018-12-23 16:01:37 -05:00
695edd7a14 Merge pull request #1055 from chengyi/add-rust-keybinding-description
add rust key bingding description
2018-12-22 20:08:31 -05:00
02624251c1 lang/rust: update keybinds for new map! 2018-12-22 20:07:18 -05:00
954b0f9c5d Minor tweaks to map! calls for correctness
+ :map arguments shouldn't be quoted
+ :localleader keys default to all states in the absence of state
  modifiers. This is preferred, rather than restricting their use to
  normal state.
+ :map* is deprecated (there is no difference between it and :map)
2018-12-22 17:01:00 -05:00
d6cb0ec5f5 General cleanup & minor refactoring 2018-12-22 04:25:15 -05:00
4daa9271a0 Introduce general.el & rewrite map!
+ Now uses an overriding keymap for leader keys, so that it is always
  available, even outside of normal/visual states. In insert/emacs
  states, or in sessions where evil is absent, an alternative prefix is
  used for leader/localleader keys. See these variables:
  + doom-leader-prefix
  + doom-leader-alt-prefix
  + doom-localleader-prefix
  + doom-localleader-alt-prefix
+ Keybinds now support alternative prefixes through the new :alt-prefix
  property. This is useful for non-evil users and non-normal evil
  states. By default, this is M-SPC (leader) and M-SPC m (localleader).
+ Removed +evil-commands flag from config/default (moved to
  feature/evil/+commands.el).
+ config/default/+bindings.el has been split into
  config/default/+{evil,emacs}-bindings.el, which one is loaded depends
  on whether evil is present or not. The latter is blank, but will soon
  be populated with a keybinding scheme for non-evil users (perhaps
  inspired by #641).
+ The define-key! macro has been replaced; it is now an alias for
  general-def.
+ Added unmap! as an alias for general-unbind.
+ The following modifier key conventions are now enforced for
  consistency, across all OSes:
    alt/option      = meta
    windows/command = super
  It used to be
    alt/option      = alt
    windows/command = meta
  Many of the default keybinds have been updated to reflect this switch,
  but it is likely to affect personal meta/super keybinds!

The map! macro has also been rewritten to use general-define-key. Here
is what has been changed:

+ map! no longer works with characters, e.g. (map! ?x #'do-something) is
  no longer supported. Keys must be kbd-able strings like "C-c x" or
  vectors like [?C-c ?x].
+ The :map and :map* properties are now the same thing. If specified
  keymaps aren't defined when binding keys, it is automatically
  deferred.
+ The way you bind local keybinds has changed:

    ;; Don't do this
    (map! :l "a" #'func-a
          :l "b" #'func-b)
    ;; Do this
    (map! :map 'local "a" #'func-a
                      "b" #'func-b)

+ map! now supports the following new blocks:
  + (:if COND THEN-FORM ELSE-FORM...)
  + (:alt-prefix PREFIX KEYS...) -- this prefix will be used for
    non-normal evil states. Equivalent to :non-normal-prefix in general.
+ The way you declare a which-key label for a prefix key has changed:

    ;; before
    (map! :desc "label" :prefix "a" ...)
    ;; now
    (map! :prefix ("a" . "label") ...)

+ It used to be that map! supported binding a key to a key sequence,
  like so:

    (map! "a" [?x])  ; pressing a is like pressing x

  This functionality was removed *temporarily* while I figure out the
  implementation.

Addresses: #448, #814, #860
Mentioned in: #940
2018-12-22 04:14:43 -05:00
56a2c15c44 add rust key bingding description 2018-12-19 19:00:58 +08:00
a37d199862 lang/org: add ob-async 2018-12-10 20:31:31 -05:00
ced8f94830 lang/org: improve ob-async lazy loading
ob-async adds its own advice around org-babel-execute-src-block, which
directly interferes with Doom's lazy loader for babel
packages (sometimes bypassing it entirely). This ensures it can't do
that.
2018-12-10 18:09:28 -05:00
2d13dbe10a lang/org: fix ob-async support
ob-async uses org-babel-load-languages to load babel packages in a child
process, but packages entered into the org-babel-load-languages variable
by Doom's lazy loader were misnamed. This caused load errors in the
child process.

The language-to-package resolution is now performed before it is entered
into org-babel-load-languages. Additionally, ob-async will now be lazy
loaded if it is available (and fail silently otherwise).
2018-12-10 13:50:58 -05:00
5e96b42ccc lang/latex: fix TeX-latex-mode error
Caused because use-package is creating an autoload for TeX-latex-mode as
if it were in the tex package, but it's in the latex package, instead.

Since auctex already autoloads TeX-latex-mode, there's no need to set
our own.
2018-12-06 19:07:36 -05:00
c2bce8cee4 lang/elixir: src_block{,_end} commented out 2018-12-06 17:09:00 +11:00
1dc3e5289b lang/elixir: add pretty-symbols 2018-12-06 17:05:50 +11:00
408eecad8e lang/python: lazyload python-pytest #1026 2018-12-05 22:11:54 -05:00
38d0d88018 lang/common-lisp: lazyload sly-repl-ansi-color #1032 2018-12-05 22:11:54 -05:00
7b761a9b42 Refactor feature deferral for (common|emacs)-lisp
'lisp-mode is now deferred, to make it easier to lazy-configure it
2018-12-05 22:11:54 -05:00
f003d2b4fe Merge pull request #1032 from mfiano/develop
Various changes
2018-12-05 18:59:42 -05:00
4455dc8baa Extract ipython/jupyter arglist to variables
Also fixes #1022 by removing default --pylab arg from
+python/open-ipython-repl.
2018-12-05 14:31:02 -05:00
553cee5921 lang/cc: remove naive cdb file check #1028
irony looks for compile_commands.json in several places, but
+cc/reload-compile-db would error out if there it didn't exist at the
project root.
2018-12-05 14:22:14 -05:00
1a7797f0fa Merge pull request #1026 from Emiller88/feature/pytest
Add pytest
2018-12-03 23:16:12 -05:00
30fbb0d62f Lazy-load python-pytest 2018-12-03 23:15:40 -05:00
714c30aea1 Merge pull request #1034 from djeis97/coq-popup-config
Coq popup config
2018-12-03 22:24:33 -05:00
84af639fc3 set-popup-rules! -> set-popup-rule!
Semantic refactor.

Also adjusts regexp to use non-capturing group (for slight performance benefit).
2018-12-03 22:23:57 -05:00
dcbcc4d1e7 Added a popup rule to ignore proof general popups 2018-12-02 13:22:42 -05:00
261750c158 Fix: Improve common-lisp module bindings 2018-12-02 01:51:48 -05:00