Commit Graph

7528 Commits

Author SHA1 Message Date
e28fea3777 Fix clj-refactor bindings 2018-09-08 03:55:11 +03:00
96bea9e9ad Merge pull request #864 from patrl/fixUnicodeRegression
Fix unicode regression
2018-09-04 11:59:46 +02:00
475e2f9982 Fix unicode regression 2018-09-04 10:13:48 +02:00
0d57ed3bbc Merge pull request #861 from patrl/unicodeFix
Unicode fallback
2018-09-03 23:57:28 +02:00
9705fbd693 Merge pull request #862 from qleguennec/react-pretty-symbols
Adds js pretty symbols for `rjsx-mode`
2018-09-03 23:56:45 +02:00
10b22b9750 Merge rjsx-mode pretty-symbols with pre-existing 2018-09-03 23:56:25 +02:00
37b920f461 adds common js pretty symbols for rjsx-mode 2018-09-03 16:38:11 +02:00
939dd93e79 Impose fallback behaviour 2018-09-03 13:14:59 +02:00
f8f9144f08 ui/modeline: add indent type+width to modeline
Also, display nothing for file encoding if encoding is undecided.
2018-09-03 04:05:35 +02:00
b697ad982e lang/web: more sensible html-tidy formatter config
+ No longer inserts html/body tags unless they're detected in the buffer
+ Respect tab-width and indent-tab-mode
+ Don't auto-remove empty elements
2018-09-03 03:59:24 +02:00
df42d8ce89 editor/format: rewrite & fix set-formatter!
+ Updated docstring (and added two more examples)
+ Can now be used with shell command strings or string lists. String
  sublists can have more than 2 elements. Non-string items will be
  interpolated into the string before it. If any non-string item is nil,
  its sublist is omitted entirely.
+ Can now be used to redefine formatters predefined by the format-all
  package, by passing the formatter's name (as a symbol) as the first
  argument.
+ Added :modes property for cases when first argument isn't a major mode
  or list of them (when redefining a formatter).
2018-09-03 03:58:44 +02:00
e7d5da2686 feature/evil: detect frame cursor-color #851
In case set-cursor-color was used early in the config process (e.g. in
~/.doom.d/init.el), detect it before resorting to #FFFFFF as a default.
2018-09-03 03:58:44 +02:00
06c268954d Bind SPC s r to yas-reload-all 2018-09-03 03:58:44 +02:00
596705dbda Properly prioritize private snippets #852
In the previous solution, if *any* private snippets existed, *all*
non-private snippets were hidden.
2018-09-03 03:58:43 +02:00
eaa10946f1 Refactor startup optimizations
+ Add doom-gc-cons-upper-limit variable
+ Don't use most-positive-fixnum, in case Emacs somehow wants to
  allocate that much!
+ Don't use startup optimizations in noninteractive sessions
+ Restore gc-cons-threshold on idle timer, instead of hook (to defer the
  possible GC pause and so deferred packages can take advantage of these
  optimizations).
2018-09-03 03:58:43 +02:00
81ee563c4c +format|buffer: use pcase-let & return boolean
So it can be used in other functions.
2018-09-03 03:58:43 +02:00
75b39a9396 editor/format: preserve indentation for regions 2018-09-03 03:58:43 +02:00
c885cd2b9d editor/format: refactor & reformat +format-buffer
Also switches cl-destructuring-bind to pcase-let to avoid breaking
errors being thrown.
2018-09-03 03:58:43 +02:00
5e25cfd6a7 Fix delete-other-windows in popups #858
Originally, calling delete-other-windows from a popup window would kill
only popup windows. This has been corrected to raise the popup, *then*
delete other windows.

As if you'd done `M-x +popup/raise` then `M-x delete-other-windows`
2018-09-02 20:38:36 +02:00
31bcac9a1e Refactor gc optimizations on startup
Slightly smaller default gc-cons-threshold (and default
gc-cons-percentage), for less stuttering, and use most-postive-fixnum as
a ceiling.
2018-09-02 17:28:04 +02:00
3d5c8ba279 Add :lang idris to init.example.el
Needs a witty comment!
2018-09-02 17:20:19 +02:00
3a23ff56cd General formatting & minor refactors 2018-09-02 17:20:19 +02:00
daef19ba64 Defer garbage collection in the minibuffer
This can speed up things that run in or from the minibuffer, like
projectile/helm/ivy commands.
2018-09-02 17:06:12 +02:00
a581b7fc3f Remove jit-lock-* options
Only jit-lock-stealth-nice is different from the default, and slows down
some scrolling operations without helping much. It may be better to
conditionally enable this in larger buffer.
2018-09-02 15:56:45 +02:00
b3fb3ef55f Fix highlight-numbers in elixir-mode
The new highlight-numbers regexp depends on a mode to have a well
defined syntax table. elixir-mode does not appear to be one of those
modes.
2018-09-02 15:15:58 +02:00
32de22b1d2 Remove :load-path
Gah, it snuck in again! Sneaky punk...
2018-09-02 13:01:06 +02:00
83a843bfe6 Fix void-function doom|fix-whitespace-mode-in-childframes
Function was renamed.
2018-09-01 16:30:17 +02:00
92cfcf3627 lang/elixir: conditionally install flycheck-credo
And register flycheck-credo after elixir-mode loads.
2018-09-01 16:17:52 +02:00
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