Commit Graph

1661 Commits

Author SHA1 Message Date
99e916348a lang/java: fix java namespace resolution #1098
Now uses slightly more sophisticated namespace resolution when
populating the *.java file template.
2019-01-21 17:39:39 -05:00
ed26b59e1d Merge pull request #1126 from ar1a/dante
lang/haskell: fix dante completion
2019-01-20 15:24:07 -05:00
d46eaeddbf Merge pull request #1100 from mbger/doc/cc
lang/cc Add known issues with bear to readme
2019-01-20 14:23:00 -05:00
7251b50b35 Make bear-macos issue a sub-tree
Since it is directly relevant to the project-compile-settings section.
2019-01-20 14:22:45 -05:00
d68ecb7636 lang/haskell: fix dante completion 2019-01-21 06:21:09 +11:00
4b62f1215e Merge pull request #1104 from UndeadKernel/fix-ipython_async
org: let ob-async ignore ob-ipython
2019-01-20 14:16:38 -05:00
9a8f3070a6 Merge pull request #1119 from mfiano/patch-3
common-lisp module: Added keybind to quit sly-xref-mode windows
2019-01-20 14:10:51 -05:00
195212f71c Merge pull request #1118 from mfiano/patch-2
common-lisp module: Fix sly-db button binding
2019-01-20 14:10:16 -05:00
2f42d93988 Merge pull request #1117 from mfiano/patch-1
common-lisp module sly-db-quit fix
2019-01-20 14:10:08 -05:00
a183fcddf5 common-lisp module: Added keybind to quit sly-xref-mode windows 2019-01-14 20:48:03 -05:00
ddc0c1fc21 common-lisp module: Fix sly-db button binding 2019-01-14 20:07:41 -05:00
b7de17aecd common-lisp module sly-db-quit fix
The `q` binding for `sly-popup-buffer-mode-map` was overriding `sly-db-mode`'s binding, causing lots of issues.
2019-01-14 19:54:17 -05:00
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
5d4dec996f org: let ob-async ignore ob-ipython
ipython implements its own `async` keyword. As ob-async is loaded now by
default, we need to explicitly tell ob-async not to touch ob-ipython blocks.
2019-01-09 14:14:39 +01: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
e02cde1195 :lang cc Add known issues section for macOS 2019-01-07 19:28:59 +01: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