Commit Graph

7479 Commits

Author SHA1 Message Date
Sven Grunewaldt
f30a210428 Add flycheck-credo for lang/elixir 2018-08-31 11:28:28 +02:00
Henrik Lissner
3ff5c801a9
Merge pull request #822 from patrl/idris
:lang idris
2018-08-31 03:48:54 +02:00
Henrik Lissner
e7fa22c9ed
Merge pull request #843 from benj02/patch-4
Fix typo in ivy/README.org
2018-08-31 03:45:59 +02:00
Henrik Lissner
cdb6c9077a
Merge pull request #795 from hackeryarn/develop
added refactor shortcut to clojure
2018-08-31 03:44:15 +02:00
Henrik Lissner
8dd33678bc
Merge pull request #842 from myme/org-cal-nav
lang/org: Add evil-friendly calendar navigation
2018-08-31 03:35:11 +02:00
Henrik Lissner
25ef67d01b
Merge pull request #849 from patrl/initUpdate
init.example.el update
2018-08-31 03:33:16 +02:00
Henrik Lissner
dd2e7c63a5
Merge pull request #838 from patrl/coqTweaks
Company-coq tweaks
2018-08-31 03:32:51 +02:00
Henrik Lissner
f75381ae51
when not => unless 2018-08-31 03:32:25 +02:00
Henrik Lissner
f95623989d
lang/coq: remove unnecessary after!
For setting a variable, an after! block is overkill
2018-08-31 03:31:58 +02:00
Henrik Lissner
c4c0a1faab
Merge pull request #844 from patrl/deftBinding
Adds a default binding for deft
2018-08-31 03:30:36 +02:00
Henrik Lissner
7b2661d6a0
feature/lookup: update +lookup:dash ex command 2018-08-31 03:04:29 +02:00
Henrik Lissner
a1a66f5445
lang/javascript: improve project file detection
+javascript-npm-mode now uses a better search for package.json, making
extra sure that your local node_modules folder is added to exec-path.
2018-08-31 02:53:50 +02:00
Henrik Lissner
0cf9d1f2f2
Minor refactor & revision across the board 2018-08-31 02:53:50 +02: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
2df2622329
lang/web/autoload/css: escape braces
Prevents auto-formatting of braces by tools like parinfer.
2018-08-31 02:40:15 +02:00
Henrik Lissner
2c5ccaa864
Update patch-macos documentation
Follows up on 0fc9b6be
2018-08-31 00:19:34 +02:00
Henrik Lissner
147fa794d3
lang/nim: fix invalid chars in nimsuggest tmp path 2018-08-30 23:36:32 +02:00
Henrik Lissner
c1fa37245f
Fix dtrt-indent errors in broken smie modes
Some smie modes throw errors when trying to guess their indentation,
like `nim-mode'. This prevents them from leaving Emacs in a broken
state.
2018-08-30 22:39:03 +02:00
Henrik Lissner
bfe7b9f1c4
lang/nim: fix invalid argument errors
The nimsuggest plugin tries to build a unique path for temporary files
for its flycheck checker. This path contains /tmp/emacs-nim-mode/A/B,
where A is the frame ID and B is the full path to the file being checked.

However, the original `nimsuggest--get-dirty-dir' incorrectly extracts
the frame ID from the string representation of `selected-frame' if
frame-title-format has been modified (which Doom has). The result is the
title of the frame, which can contain illegal path characters in
Windows, which in turn causes invalid argument errors when
`nimsuggest--make-tempdir' tries to use it.

This should really be reported upstream!
2018-08-30 22:35:25 +02:00
Henrik Lissner
a7b87fe3de
Add +emacs-lisp-enable-extra-fontification option 2018-08-30 20:41:54 +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
fcf2a26329
lang/nim: fix blank nimsuggest-path stringp error 2018-08-30 19:42:57 +02:00
Henrik Lissner
68e2b814e7
Fix stringp error when inserting new snippets #852
New snippets (created with yas-new-snippet) may not yet be associated
with a file when it is passed to the functions in yas-prompt-functions.
One of those functions, +snippets-prompt-private, prioritizes private
snippets over default ones, but determines which is which with
`file-in-directory-p`, which expects string arguments.

To fix this, we can safely assume that if a snippet has no associated
file, it is a private snippet.
2018-08-30 17:40:33 +02:00
Henrik Lissner
33d692a6be
Make bin/doom work when it's symlinked 2018-08-30 16:31:09 +02:00
Henrik Lissner
349fb49c7b
editor/format: refactor +format-buffer & users 2018-08-30 15:00:33 +02:00
Henrik Lissner
1b4040229e
editor/format: update documentation 2018-08-30 14:56:50 +02:00
Henrik Lissner
1ae3523f75
editor/format: autoload format-all-probe #834 2018-08-30 14:44:37 +02:00
Henrik Lissner
2d21f1af6d
Fix comparison link for doom upgrade
The hashes were the wrong way around.
2018-08-30 13:36:21 +02:00
Henrik Lissner
25cc01ce41
Fix & refactor doom/open-vanilla-sandbox
It would fail to run the new instance because the arguments send to it
were incorrectly formatted.
2018-08-30 13:29:56 +02:00
Henrik Lissner
895cf136d5
Ensure evil popup rules are defined later
Otherwise they fall before ui/popup's fallback rules in
display-buffer-alist
2018-08-30 13:29:56 +02:00
Henrik Lissner
068cf5f7d4
Rename +evil|save-buffer to be self-explanitory
+evil|disable-vimlike-save-message
2018-08-30 13:29:56 +02:00
Henrik Lissner
7616316634
editor/format: improve message feedback
Announce failures, noops and successes clearly, and log errors.
2018-08-30 13:29:49 +02:00
Henrik Lissner
60c03a78d9
Fix void-function treemacs-current-visibility error
Tried to use a function before it was defined.
2018-08-30 13:11:18 +02:00
Henrik Lissner
cc1b0f7ee6
Show comparison diff link on bin/doom upgrade 2018-08-30 00:42:34 +02:00
Henrik Lissner
0fc9b6be91
Improve patch-macos wrapper script
Reported to produce better results.
2018-08-29 23:01:59 +02:00
Henrik Lissner
48948f725f
Enable +javascript-npm-mode in rjsx-mode too 2018-08-29 17:17:01 +02:00
Henrik Lissner
fd9a3c36ee
editor/format: refactor (again) 2018-08-29 17:02:49 +02:00
Henrik Lissner
d24fce1dcd
Fix void-variable org-capture-is-refiling error
In case org-capture.el isn't loaded when org-refile is used.
2018-08-29 16:45:09 +02:00
Henrik Lissner
6e03ddacda
Update & revise set-formatter! docstring 2018-08-29 15:56:59 +02:00
Henrik Lissner
4b9233bec7
editor/format: format by diff & major refactor
This redesigns how format-all applies changes. Before, it would erase
the buffer and insert the formatted result. This would throw markers out
of whack, and usually meant the cursor would end up somewhere else (e.g.
the beginning of the file).

Now, changes are made to the buffer line by line, via RCS patch.

Other changes:

+ +format-region function was removed (replaced by +format-buffer and
  +format/region).
+ set-formatter! was moved to autoload/settings.el
+ New +format/buffer command to replace format-all-buffer
2018-08-29 12:48:38 +02:00
Henrik Lissner
cb5c9cc9ea
Don't autoformat emacs-lisp-mode buffers on save
This is much too unpredictable, considering the variable nature of elisp
indentation, and the possibility that certain functions and their indent
behavior may not be defined/declared when the file is being formatted.
2018-08-29 12:46:24 +02:00
Henrik Lissner
902386b60f
Fix file-missing error during patch-macos
Forgot to add Emacs.app to the end of the directories to be searched!
Whoops!
2018-08-29 12:44:09 +02:00
Patrick Elliott
10a1e46bf5
Added deft and coq modules 2018-08-29 11:03:28 +02:00
Henrik Lissner
cab0ee33d1
ui/treemacs: fix SPC o P (treemacs-find-file)
Would create a blank treemacs window when invoked before a treemacs
window was first initialized.
2018-08-29 02:16:06 +02:00
Henrik Lissner
be8eedc296
Fix lost window state when toggling popups
Replaces af045213 with a method for preserving popup state.
2018-08-29 02:16:06 +02:00
Henrik Lissner
d6695d4cf3
Update doom/toggle-line-numbers #847
Now that display-line-numbers-mode has been backported to Emacs 25, we
can use it instead of interacting with nlinum directly.
2018-08-29 02:15:51 +02:00
Henrik Lissner
a57c0fbede
feature/lookup: remove devdocs support (for now)
devdocs-lookup is broken at the moment. devdocs search is still
available through +lookup/online as a provider however. This may be
reversed later, when (and if) we find a better devdocs backend.
2018-08-28 20:52:27 +02:00
Henrik Lissner
5021b0dbb6
completion/helm: fix undefined helm/grep* 2018-08-28 19:35:56 +02:00
Henrik Lissner
9ee1d8d0e2
Set indent function for dispatcher! macro 2018-08-28 19:14:18 +02:00
Henrik Lissner
ef6e09dac9
Search for Emacs.app in /usr/local/opt
And refactors doom-patch-macos function, its dispatcher, and its usage
in doom-quickstart.
2018-08-28 19:13:34 +02:00