Commit graph

4087 commits

Author SHA1 Message Date
Patrick Elliott
d9f819dac4
Only make company features conditional 2018-08-27 12:57:07 +02:00
Patrick Elliott
9b3442edae
Removed hindent (included in format-all) 2018-08-27 12:05:03 +02:00
Henrik Lissner
98b5c95ee5
editor/format: add +format|enable-on-save alias 2018-08-27 10:30:31 +02:00
Henrik Lissner
a005fed274
Fix symlinks in modeline path segment
This would cause a lot of ../'s when opening a symlinked file.
2018-08-27 03:32:42 +02:00
Henrik Lissner
3e7f1ccf4f
Fix reference to doom-narrow-buffer
This was renamed to doom/clone-and-narrow-buffer at some point.
2018-08-27 03:25:49 +02:00
Henrik Lissner
16d7b552f1
Bind M-` to other-frame on MacOS 2018-08-26 22:43:28 +02:00
Henrik Lissner
381851aab6
Prevent wrong-type error on +company/complete 2018-08-26 22:02:35 +02:00
Henrik Lissner
3b69045ed4
editor/format: add +format|on-save buffer-locally 2018-08-26 17:31:14 +02:00
Henrik Lissner
f1460ff592
editor/format: don't move cursor on save 2018-08-26 17:26:54 +02:00
Henrik Lissner
af045213e3
Preserve window state when toggling popups
e.g. size
2018-08-26 17:24:27 +02:00
Patrick Elliott
1655e84de2
Added rudimentary readme 2018-08-26 16:51:38 +02:00
Patrick Elliott
3f3b00dde2
Basic deft module 2018-08-26 16:41:38 +02:00
Henrik Lissner
1ed8894826
+workspace/delete: error if workspace doesn't exist 2018-08-26 14:14:53 +02:00
Henrik Lissner
e40a58c423
Optimize +workspace-new & workspace creation
This is much faster than the old method of switching to the persp to
modify them.
2018-08-26 14:12:50 +02:00
Henrik Lissner
469aa81570
Forward-require dependencies in tests
Easier to see at a glance what the test's dependencies are.
2018-08-26 00:20:16 +02:00
Henrik Lissner
2aa509b36c
Fix left/right keys in helm
These should be set to left-char/right-char, anything else is
disruptive, especially when C-b and C-f are backward/forward-word.
2018-08-25 23:38:40 +02:00
Henrik Lissner
4f671c3acb
Fix stringp error caused by app/write's doctor
Caused by langtool-langauge-tool-jar not being set (because defvar won't
change a defined variable), and app/write/doctor.el uses it in a
file-exists-p call, which throws the stringp error if given anything
other than a string.
2018-08-25 20:58:42 +02:00
Henrik Lissner
3948704c69
completion/company: add +tng flag & support 2018-08-25 19:54:11 +02:00
Henrik Lissner
b14bf99d4b
Fix over-reindentation when o/O continues comments
This would run indent-according-to-mode after creating a new line, which
would often throw new comment lines out of whack. Now it preserves the
indentation of the originating line.

Also fixes continuation whitespace issues with evil-open-above on
C-style block comments.
2018-08-25 19:45:23 +02:00
Patrick Elliott
fb5d1ae739
Remove (unmaintained) helm-idris package 2018-08-25 16:22:04 +02:00
Patrick Elliott
e64b8322a4
Added helm-idris 2018-08-25 15:35:06 +02:00
Henrik Lissner
0009c7bebf
Append space on C-SPC if not at end-of-symbol
Completion rarely works in the middle of (or at the beginning of) a
symbol, so we insert a space in front of the cursor in those cases and
then invoke completion.
2018-08-25 15:16:28 +02:00
Henrik Lissner
cc47798846
Revert 6b910392 #829
Causes other errors. Will need a better solution.
2018-08-25 12:00:27 +02:00
Henrik Lissner
6515a1c539
editor/format: fix +onsave 2018-08-25 01:10:47 +02:00
Henrik Lissner
c514ad200a
Remove web-beautify from javascript & web modules
Superceded by :editor format module, which uses prettier.
2018-08-25 00:06:13 +02:00
Henrik Lissner
171c87aa2c
editor/format: general fix & refactor
+ Fixes function/command formatters (like #'gofmt)
+ Fixes formatting by region
+ Adds default keybindings:
  + gQ evil operator
  + SPC c f (normal mode) to format buffer
  + SPC c f (visual mode) to format selection
2018-08-25 00:06:12 +02:00
Henrik Lissner
469cc7fbc1
Remove up/down keybinds in helm 2018-08-24 19:28:03 +02:00
Henrik Lissner
d59f36eee1
Eval compile-command in :make
In case it is a set to a lisp form by a file local variable.
2018-08-24 17:53:21 +02:00
Henrik Lissner
6a39b98f67
Trigger +javascript-npm-mode in json-mode too 2018-08-24 16:56:24 +02:00
Henrik Lissner
62b9166871
Change :make to reuse last command
Unless given a command.
2018-08-24 12:36:16 +02:00
Henrik Lissner
9eee22e3fc
completion/helm: redesign keybindings
A more vim-friendly (and spacemacs-friendly) keybinding scheme.

May address #829
2018-08-24 01:47:44 +02:00
Henrik Lissner
6b91039283
Fix helm persistent action with *Org Links* window
Fixes #829. Helm's persistent action would try to operate on the *Org
Links* window, which is dedicated, causing a "Cannot split side window
or parent of side window" error.

This fix gets rid of this unhelpful popup altogether when helm is
enabled.
2018-08-24 01:09:53 +02:00
Henrik Lissner
619ac43017
completion/helm: unbind <left>/<right> #829
Disables special behavior on <left>/<right> and <M-left>/<M-right>,
which are strange.
2018-08-24 01:08:39 +02:00
Henrik Lissner
627aae436d
completion/helm: add helm-ff-fuzzy-matching
Also resorts the fuzzy-match variable list.
2018-08-24 01:07:55 +02:00
Henrik Lissner
e3f412abb7
Add +evil-want-o/O-to-continue-comments
Controls whether o/O continue commented lines. Since this is the default
behavior of vim, it is enabled by default.
2018-08-23 18:42:09 +02:00
Henrik Lissner
ed8a08226c
ui/modeline: install shrink-path 2018-08-23 17:27:31 +02:00
Henrik Lissner
bfa6fce15f
+popup/buffer: hide buffer being popped up #825 2018-08-23 17:12:49 +02:00
Henrik Lissner
641cef9848
Refresh vc when magit refreshes #826
Magit does not inform vc that changes have occurred to open buffers.
This fixes that (and indirectly fixes branch display in the modeline).
2018-08-23 17:09:59 +02:00
Henrik Lissner
c7abe743d1
lang/ruby: show messages when robe throws errors 2018-08-23 16:55:02 +02:00
Henrik Lissner
f23960b919
lang/ruby: don't enable global-rbenv-mode
To be consistent with pyenv/virtualenvs; rbenv should be managed
manually, rather than trying to guess what the user wants.
2018-08-23 16:54:02 +02:00
Henrik Lissner
e003c2aa6a
Remove :load-path
Accidentally snuck into a commit!
2018-08-22 22:44:22 +02:00
Henrik Lissner
dc9841b192
ui/modeline: refactor path builder & add other styles
This brings +doom-modeline-buffer-file-name styles to the new modeline
module, controlled by the +modeline-buffer-path-function variable.

The available functions are:

* +modeline-file-path-with-project: project/src/lib/file.c
* +modeline-file-path-from-project: src/lib/file.c
* +modeline-file-path-truncated-with-project: project/s/l/file.c
* +modeline-file-path-truncated-upto-project: ~/w/project/src/lib/file.c
* +modeline-file-path-truncated-upto-project-root: ~/w/p/s/lib/file.c
* +modeline-file-path-truncated: ~/w/p/s/l/file.c
* +modeline-file-name: file.c

The default is file-path-with-project.
2018-08-22 22:36:44 +02:00
Henrik Lissner
6282526743
ui/modeline: fontify project root separately
And add new doom-modeline-buffer-project-root face.
2018-08-22 22:28:53 +02:00
Henrik Lissner
4dfb84211b
feature/lookup: minor refactor 2018-08-22 20:38:16 +02:00
Henrik Lissner
8e7a7c1878
Fix void-function format-all-resolve-system error
This function is only defined at compile time for the format-all
package, so we must extract it into a new function.
2018-08-22 20:38:16 +02:00
Henrik Lissner
34fcaec678
config/default: add SPC c f for formatting code
Powered by the new :editor format module.
2018-08-22 20:38:13 +02:00
Henrik Lissner
742f9d23a2
Merge pull request #823 from patrl/moreCoq
Put company-coq behind conditional
2018-08-22 03:35:34 +02:00
Henrik Lissner
c5334f61a3
Add lookup-handlers for idris-mode 2018-08-22 03:34:51 +02:00
Henrik Lissner
f80b9bb8c5
Defer loading of idris-mode package 2018-08-22 03:33:12 +02:00
Henrik Lissner
2694a42fdb
lang/ledger: polish keybindings
Fixes #818
2018-08-22 02:35:55 +02:00