Commit graph

1485 commits

Author SHA1 Message Date
UndeadKernel
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
Henrik Lissner
fbf2a29ebe
lang/go: reformat README (WIP) 2019-01-03 02:01:57 -05:00
Henrik Lissner
6e57350277
lang/org: restore meta return keybinds 2018-12-31 15:57:06 -05:00
Henrik Lissner
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
Henrik Lissner
937252af4e
lang/csharp: add +unity flag
And group shader-mode & +csharp-unity-mode under it.
2018-12-29 00:09:17 -05:00
Henrik Lissner
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
Henrik Lissner
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
Henrik Lissner
3befcf934e
Make +haskell-repl-buffer arg optional 2018-12-26 14:53:08 -05:00
Andy McLeod
1c20e33e03 Add descriptions for go-mode map
Makes the map for go-mode easier to discover.
2018-12-26 16:57:53 +00:00
Henrik Lissner
448f2e55e5
lang/org: update localleader keybinds
To better suit the new map!
2018-12-25 02:32:53 -05:00
Henrik Lissner
70a4db49d1
lang/org: fix C-S-return & S-s-return keybinds 2018-12-24 02:43:32 -05:00
Henrik Lissner
f9b72545b7
Replace def-org-file-link! with function
A macro is overkill for this.
2018-12-23 23:55:14 -05: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
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
Henrik Lissner
695edd7a14
Merge pull request #1055 from chengyi/add-rust-keybinding-description
add rust key bingding description
2018-12-22 20:08:31 -05:00
Henrik Lissner
02624251c1
lang/rust: update keybinds for new map! 2018-12-22 20:07:18 -05:00
Henrik Lissner
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
Henrik Lissner
d6cb0ec5f5
General cleanup & minor refactoring 2018-12-22 04:25:15 -05:00
Henrik Lissner
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
wanghao
56a2c15c44 add rust key bingding description 2018-12-19 19:00:58 +08:00
Henrik Lissner
a37d199862
lang/org: add ob-async 2018-12-10 20:31:31 -05:00
Henrik Lissner
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
Henrik Lissner
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
Henrik Lissner
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
Aria
c2bce8cee4 lang/elixir: src_block{,_end} commented out 2018-12-06 17:09:00 +11:00
Aria
1dc3e5289b lang/elixir: add pretty-symbols 2018-12-06 17:05:50 +11:00
Henrik Lissner
408eecad8e lang/python: lazyload python-pytest #1026 2018-12-05 22:11:54 -05:00
Henrik Lissner
38d0d88018 lang/common-lisp: lazyload sly-repl-ansi-color #1032 2018-12-05 22:11:54 -05:00
Henrik Lissner
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
Henrik Lissner
f003d2b4fe
Merge pull request #1032 from mfiano/develop
Various changes
2018-12-05 18:59:42 -05:00
Henrik Lissner
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
Henrik Lissner
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
Henrik Lissner
1a7797f0fa
Merge pull request #1026 from Emiller88/feature/pytest
Add pytest
2018-12-03 23:16:12 -05:00
Henrik Lissner
30fbb0d62f
Lazy-load python-pytest 2018-12-03 23:15:40 -05:00
Henrik Lissner
714c30aea1
Merge pull request #1034 from djeis97/coq-popup-config
Coq popup config
2018-12-03 22:24:33 -05:00
Henrik Lissner
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
Elijah Malaby
dcbcc4d1e7 Added a popup rule to ignore proof general popups 2018-12-02 13:22:42 -05:00
Michael Fiano
261750c158 Fix: Improve common-lisp module bindings 2018-12-02 01:51:48 -05:00
Michael Fiano
89c1180b73 Minor: lexicographically sort bindings
Just so I can see what is bound already more easily.
2018-12-02 00:42:15 -05:00
Michael Fiano
2522862016 Feature: Enable sly-repl-ansi-color in common-lisp
This gives ANSI color escape sequence support in the REPL, needed by
some software.
2018-12-01 15:30:48 -05:00
Michael Fiano
3635e23be7 Minor: common-lisp macro expander hydra as default
It is usually the case that we want to easily step through the expansion
of a macro inline, so prevent a modifier key press.
2018-12-01 15:26:44 -05:00
Michael Fiano
fead537328 Fix: common-lisp module jump hydra conflict
This hydra conflicts with Doom's popup windows in the case a jump
creates a sly-xref-mode buffer. Use direct local leader bindings instead.
2018-12-01 15:25:12 -05:00
Edmund Miller
52f805ba62
Add some extra keybindings 2018-11-23 11:14:25 -06:00
Edmund Miller
2c0b0fac77
Keybindings are added to python-mode-map 2018-11-23 11:06:03 -06:00
Kazutoshi Noguchi
e9bdf89c73 Fix 'SPC m b r' in go-mode. 2018-11-23 23:13:32 +09:00
Edmund Miller
ba49765358
Initial pytest 2018-11-22 12:53:08 -06:00
Ting Zhou
7e02cbb17d lang/python: add miniconda3 path 2018-11-14 22:33:18 -08:00
Henrik Lissner
80e53eee5d
lang/python: add homebrew miniconda3 path
For `brew cask install miniconda`
2018-11-15 00:55:54 -05:00
Elijah Malaby
a1e8fde75c Removed :select nil from cider-repl popup rules 2018-11-13 21:29:16 -05:00
Henrik Lissner
2f47ab9f28
Merge pull request #1001 from myme/company-psc-ide-backend
purescript: Properly register company backend
2018-11-13 18:19:14 -05:00