Commit Graph

3686 Commits

Author SHA1 Message Date
29ae7f935f Add eshell/mkdir-and-cd command
I'd recommend aliasing this to mkdircd or take.
2018-07-06 15:34:26 +02:00
633b5b764d Apply smartparens {} fix to enh-ruby-mode too
Fixes:

  {|} => {
    |
  }

in enh-ruby-mode buffers too

Reported by @ar1a
2018-07-06 15:34:26 +02:00
3f553b0a71 lang/ruby: Initial work on porting to enh-ruby 2018-07-06 23:32:06 +10:00
0b7faa468c Fix which-key sharing windows with other popups
Which-key is now lazy-loaded, so the modified which-key-popup-type gets
overwritten.
2018-07-06 14:57:40 +02:00
3443cd870a Disable magit-auto-revert-mode
Because we already use global-auto-revert-mode, but because it's lazy
loaded, the magit-autorevert package may not notice, and will enable
magit-auto-revert-mode anyway.
2018-07-06 13:39:42 +02:00
eb79760c66 ivy-rich-switch-buffer-pad => ivy-rich-pad
To match upstream changes.

Reported by @sarg
2018-07-06 12:17:29 +02:00
fff9547763 Fix major mode symbols 2018-07-05 22:09:29 -07:00
a7cba67fd6 Support for multiple ligature'd fonts
Refactors the ligature configuration to support more than just Iosevka
(uses Fira Code as the second font).
2018-07-05 19:37:06 -07:00
15f66f4b52 Add doom|disable-show-paren-mode hook
For disabling show-paren-mode buffer-locally.
2018-07-06 01:06:13 +02:00
80a3c9bf62 Fix company-box not showing lone candidates
Revert this once sebastiencz/company-box#40 is merged.
2018-07-05 21:45:44 +02:00
dfed54c7ad Shrink oversized company-box icons
This would cause lines in company-box frames to be too large, making the
last candidate seem cut off by the frame edge.
2018-07-05 21:40:34 +02:00
c38d324663 Make banner customizable
Add banner-file and banner-dir variables. If banner-file is nil, use
ASCII banner.
2018-07-05 14:33:48 +02:00
2d30d996c3 Refactor counsel-find-file actions
Conform them to naming conventions & only autoload the functions that
aren't used immediately.
2018-07-05 14:05:09 +02:00
cd26e11e94 Merge pull request #740 from fuxialexander/counsel_find_file_action
Add ivy action to counsel-find-file and counsel-projectile-switch-project
2018-07-05 13:49:04 +02:00
4ebbf8f056 Fix variable height org-level-N faces in eldoc
It only uses the face's :foreground, which should be enough, but it
prevents the minibuffer from being resized when eldoc displays
breadcrumbs in org-mode.
2018-07-05 13:44:34 +02:00
b67745a9b6 Don't show "Open user manual" button
...unless the manual exists (it will soon)!
2018-07-05 12:37:05 +02:00
3a1ba5381e Use +default/find-in-config instead on dashboard
Instead of browse-config.
2018-07-05 12:36:32 +02:00
1fa4c65c3a ui/doom-dashboard: minor refactor 2018-07-05 01:32:04 +02:00
ad5470ce3f Make org-export-directory an obsolete alias
Slow down to give people time to transition.
2018-07-04 23:57:17 +02:00
030e80d202 Refactor lang/org/+export
+ Changed org-export-directory to +org-export-dir (conform to naming
  convention). It turns out org-export-directory never existed in org.
+ Make org-export-backends addition (for ox-pandoc) idempotent.
+ Fix redundant forward slash in org-publish-timestamp-directory.
+ Resolve export directory later, giving the user a larger window to
  change +org-export-dir.
2018-07-04 23:52:29 +02:00
f949df5646 Reformat ui/doom-dashboard tests 2018-07-04 23:14:31 +02:00
ebd4d19fa4 Fix +doom-dashboard-p 2018-07-04 23:14:12 +02:00
57bad58dea Fix SPC h D keybind (wrong command name) 2018-07-04 23:09:07 +02:00
c55d6dad17 Reduce coupling with buffers library and dashboard 2018-07-04 23:06:47 +02:00
0b1cb1bb48 Look up command binds dynamically in dashboard
Keys are no longer hard coded.

cc @UndeadKernel
2018-07-04 23:05:49 +02:00
a406b2d0c8 Ignore errors if display-buffer ALIST is malformed
The gud.el library uses display-buffer incorrectly, by passing a list of
functions as its second argument, instead of as a nested list.

CORRECT:
  (display-buffer buffer
    '((display-buffer-reuse-window
       display-buffer-in-previous-window
       display-buffer-same-window display-buffer-pop-up-window)))

INCORRECT (how gud does it):
  (display-buffer buffer
    '(display-buffer-reuse-window
      display-buffer-in-previous-window
      display-buffer-same-window display-buffer-pop-up-window))

This causes "wrong-type-argument: listp
display-buffer-in-previous-window" error. However, it appears Emacs
handles malformed alists by just ignoring them, so Doom will do the
same.

Reported by @maskray
2018-07-04 21:42:33 +02:00
57020cdfdb Fix void-variable after-focus-change-function error
The condition was the wrong way around.
2018-07-04 21:26:20 +02:00
daa05eb7f2 Fix regexp for realgud popup rule
Causing invalid-regexp errors.
2018-07-04 21:23:56 +02:00
0df9bae16b don't override original actions 2018-07-05 00:38:41 +08:00
8f74ce982d add action for counsel-projectile-switch-project 2018-07-04 23:59:36 +08:00
a906b82788 add action for counsel-find-file 2018-07-04 23:59:18 +08:00
f5e8c72bb6 Add experimental modeline (disabled by default)
This mode-line may have bugs and its implementation details are certain
to change (it doesn't follow naming conventions, for instance). It also
doesn't have all the features of the old modeline (yet).

However, it is easily twice as fast as the original, and a little more
flexible, what with the `mode-line-format-left' and
`mode-line-format-right' variables. It also exposes a more powerful API
for defining modelines and modeline segments (and switching between
them).

It is disabled by default and must be activated with the +new module
flag on the ui/doom-modeline module.
2018-07-04 17:49:44 +02:00
ee4060ab80 Add image banner display logic to dashboard
But disabled by default (until the logo is ready).
2018-07-04 16:20:02 +02:00
e37e6fc25c Fix invalid face: quote errors in dashboard 2018-07-04 15:33:15 +02:00
c9ffa063e7 Fix +org/insert-item in nested plain lists
Would prepend new list items in the middle of plain lists, rather than
before them.
2018-07-04 14:19:22 +02:00
99ab08afe8 Add SPC o a keybind (org-agenda-list) 2018-07-04 14:09:56 +02:00
00e23db0b0 Fix workspace restore/load workspace keybinds
As well as keybind on dashboard.
2018-07-04 13:40:44 +02:00
e8945b2142 No evil-org-special-o/O in plain lists by default
evil-org changes the behavior of o/O to create new headlines, plain list
items or table rows. I disable its new behavior in plain lists only.
This was done because:

1. It isn't uncommon to want o/O's default behavior in plain list bodies
   of text. Unlike tables, where a new line in the middle of a table
   doesn't make much sense.
2. M-RET/S-M-RET exists.
2018-07-04 13:26:43 +02:00
38414a636f Fix evil-org's o/O in nested plain lists
Thanks by @fuxialexander
2018-07-04 13:16:11 +02:00
a0b7ccb74b emacs/eshell: restore margins
They were disabled because of shell width issues, but removing the
margin didn't change the situation!
2018-07-03 20:07:14 +02:00
1d4a41833e Don't wrap forward/backward-button keys 2018-07-03 20:07:14 +02:00
d0eaa0af1e Redesign dashboard widgets 2018-07-03 20:07:14 +02:00
f39d49c954 Conditionally enable custom neotree icon theme
If :ui neotree is disabled, disable the icon theme.
2018-07-03 12:29:27 +02:00
bcd930abb7 Reformat haskell packages.el 2018-07-03 03:41:08 +02:00
65d2b01333 Revert "Refuse to enable intero-mode if intero is absent"
This reverts commit 4f40fef592.

This was short sighted. The intero check doesn't find per-project built
instances of intero.
2018-07-03 03:41:08 +02:00
2764bc6ed5 Remove many conflicting emacs-state keybinds #734
The impact many of these keybinds would have on Emacs state weren't
thought through and end up rebinding important keys.
2018-07-03 03:41:08 +02:00
24686948c2 ui/fci: fix invalid-face: line-number error #738
The line-number face was introduced in Emacs 26 and will cause this
error in earlier versions.
2018-07-03 03:41:08 +02:00
9756a0a18c Remove doom-themes-common reloading
No longer necessary with upcoming doom-themes update.
2018-07-03 03:41:08 +02:00
81ffed520b Rename doom-before-switch-*-hook hooks
+ doom-before-switch-buffer-hook => doom-exit-buffer-hook
+ doom-before-switch-window-hook => doom-exit-window-hook
+ doom-after-switch-buffer-hook => doom-enter-buffer-hook
+ doom-after-switch-window-hook => doom-enter-window-hook

Shorter, easier-to-type names that better describe their intended
purpose.

The old names are still usable, but deprecated.
2018-07-03 03:41:08 +02:00
1ce3bedbbb fix wrong argument order in usage of alist-get 2018-07-02 11:05:10 +08:00