Commit Graph

7500 Commits

Author SHA1 Message Date
f52d76bccf Merge pull request #857 from qleguennec/npm-mode
adds npm-mode for javascript module
2018-09-01 13:40:02 +02:00
3e9146cc02 Merge pull request #854 from shuxiao9058/develop
add shortcut to "magit-gitflow-popup" with '%' in magit-mode
2018-09-01 13:38:37 +02:00
9bf90d4306 Merge pull request #853 from Strayer/add-flycheck-credo
Add flycheck-credo for lang/elixir
2018-09-01 13:21:38 +02:00
82376f324b Merge pull request #824 from hackeryarn/popup-readme-updates
ui/popup: updated readme to use set-popup-rules!
2018-09-01 13:20:09 +02:00
fdea8ff5ee ui/modeline: fontify buffer-id default value 2018-09-01 12:40:08 +02:00
712b775f36 Remove doom*set-indirect-buffer-filename hack
This was done to help the modeline build its file path in indirect
buffers, but this has been fixed by using buffer-base-buffer.

Both ui/modeline and ui/doom-modeline have been refactored to
accommodate this.
2018-09-01 12:39:26 +02:00
72d8c5dd56 New doom/delete-trailing-newlines command 2018-09-01 12:30:34 +02:00
a188ba9a1e adds npm-mode for javascript module 2018-09-01 01:48:15 +02:00
708ad138c8 doom/sudo-find-file: don't sudo writeable files 2018-09-01 00:02:39 +02:00
d72f485a97 tools/editorconfig: defer for 3 seconds
Give other plugins more room to load first.
2018-08-31 23:44:30 +02:00
36bdf7782b completion/helm: don't hide minibuffer input line
Some helm sources don't display input in the headerline, despite
helm-echo-input-in-header-line's value, making your input invisible.
2018-08-31 23:44:21 +02:00
96f2208995 Move early-init.el to init.el (for now)
Calling tool-bar-mode, menu-bar-mode or scroll-bar-mode from
early-init.el seems to cause a 15-30% slowdown in startup time, possibly
for loading the UI libraries early.

Also, loading early-init.el eagerly from init.el causes a GC hit for
Emacs 25/26 users. It's too early to use this optimization.
2018-08-31 23:44:11 +02:00
44e536e8e8 Refactor core-ui
+ Remove doom/switch-theme (replaced with an advice for load-theme)
+ Reorganize core-ui
+ Fix Emacs 26+ hl-line hack being applied for Emacs 25 users
+ Rename doom|show-whitespace-maybe to doom|highlight-non-default-indentation
+ Disable tool-bar, menu-bar and vertical-scroll-bars via
  default-frame-alist; this is a little faster than using the minor
  modes.
2018-08-31 23:44:08 +02:00
4e2bd22869 Don't chmod +x scripts
This silent change is a bit too intrusive. It's convenient, but let the
user decide to use it, rather than force it on them.
2018-08-31 23:36:54 +02:00
79cbae56b6 add shortcut to "magit-gitflow-popup" with '%' in magit-mode 2018-09-01 01:56:12 +08:00
0b64bc004f lang/nim: fix wrong-number-of-args error
Meant to use advice-add, not advice-remove
2018-08-31 16:07:33 +02:00
55d4cbd314 Fix vestigial refs to before-switch-buffer hook
doom-before-switch-buffer-hook was renamed to doom-enter-buffer-hook
2018-08-31 14:10:25 +02:00
d80e79203a Replace delete-trailing-whitespace with ws-butler
ws-butler only strips trailing spaces on lines that have been modified.

+ ws-butler is disabled if editorconfig enables
  trim_trailing_whitespace, which resorts to delete-trailing-whitespace
  instead.
+ Updates doom|(enable|disable)-delete-trailing-whitespace hooks to use
  ws-butler-mode.
2018-08-31 13:59:12 +02:00
a33165d47a editor/format: disable in sql-mode by default
sqlformat appears to be broken. It either throws an IndexError or
formats SQL incorrectly and/or poorly.
2018-08-31 12:44:24 +02:00
eac0c0b09e Fix M-` keybind on MacOS
Escaping it causes it to map à instead.
2018-08-31 12:08:40 +02:00
f30a210428 Add flycheck-credo for lang/elixir 2018-08-31 11:28:28 +02:00
3ff5c801a9 Merge pull request #822 from patrl/idris
:lang idris
2018-08-31 03:48:54 +02:00
e7fa22c9ed Merge pull request #843 from benj02/patch-4
Fix typo in ivy/README.org
2018-08-31 03:45:59 +02:00
cdb6c9077a Merge pull request #795 from hackeryarn/develop
added refactor shortcut to clojure
2018-08-31 03:44:15 +02:00
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
25ef67d01b Merge pull request #849 from patrl/initUpdate
init.example.el update
2018-08-31 03:33:16 +02:00
dd2e7c63a5 Merge pull request #838 from patrl/coqTweaks
Company-coq tweaks
2018-08-31 03:32:51 +02:00
f75381ae51 when not => unless 2018-08-31 03:32:25 +02:00
f95623989d lang/coq: remove unnecessary after!
For setting a variable, an after! block is overkill
2018-08-31 03:31:58 +02:00
c4c0a1faab Merge pull request #844 from patrl/deftBinding
Adds a default binding for deft
2018-08-31 03:30:36 +02:00
7b2661d6a0 feature/lookup: update +lookup:dash ex command 2018-08-31 03:04:29 +02:00
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
0cf9d1f2f2 Minor refactor & revision across the board 2018-08-31 02:53:50 +02:00
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
2df2622329 lang/web/autoload/css: escape braces
Prevents auto-formatting of braces by tools like parinfer.
2018-08-31 02:40:15 +02:00
2c5ccaa864 Update patch-macos documentation
Follows up on 0fc9b6be
2018-08-31 00:19:34 +02:00
147fa794d3 lang/nim: fix invalid chars in nimsuggest tmp path 2018-08-30 23:36:32 +02:00
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
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
a7b87fe3de Add +emacs-lisp-enable-extra-fontification option 2018-08-30 20:41:54 +02:00
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
fcf2a26329 lang/nim: fix blank nimsuggest-path stringp error 2018-08-30 19:42:57 +02:00
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
33d692a6be Make bin/doom work when it's symlinked 2018-08-30 16:31:09 +02:00
349fb49c7b editor/format: refactor +format-buffer & users 2018-08-30 15:00:33 +02:00
1b4040229e editor/format: update documentation 2018-08-30 14:56:50 +02:00
1ae3523f75 editor/format: autoload format-all-probe #834 2018-08-30 14:44:37 +02:00
2d21f1af6d Fix comparison link for doom upgrade
The hashes were the wrong way around.
2018-08-30 13:36:21 +02:00
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
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