Commit graph

7431 commits

Author SHA1 Message Date
Henrik Lissner
a715f848aa
Let EMACS_SERVER_NAME envvar change server-name 2018-08-16 12:53:38 +02:00
Henrik Lissner
7c82cb6002
org-capture: remove window-system frame parameter
Hopefully, `make-frame` can figure out which window-system to use.
2018-08-16 12:32:13 +02:00
Henrik Lissner
7be7a8b046
Rebind SPC o a -> org-agenda 2018-08-16 11:35:11 +02:00
Henrik Lissner
3cddbd1949
Fix void-variable string #809 2018-08-16 02:18:44 +02:00
Henrik Lissner
480378d30c
Fix doom/info in noninteractive sessions 2018-08-16 01:26:28 +02:00
Henrik Lissner
6a582d4f5f
Fix SPC / d
Use new +(ivy|helm)/project-search-from-cwd command
2018-08-15 23:35:12 +02:00
Henrik Lissner
c27ab26fd9
Refactor +helm-file-search & show prompt 2018-08-15 23:34:22 +02:00
Henrik Lissner
c69543fecc
Fix helm not cooperating with other popups
Like the compilation window
2018-08-15 23:32:53 +02:00
Henrik Lissner
7d1246888b
Only set display function for counsel-ag
counsel-rg and counsel-pt both identify themselves as counsel-ag, so
these extra specifications were unnecessary.
2018-08-15 21:19:59 +02:00
Henrik Lissner
40a900f533
lang/web: fix Emacs<26 incompatibility #806
The regexp argument for string-trim-right was introduced in 26.1.
2018-08-15 21:19:59 +02:00
Henrik Lissner
11b8ee55a1
Use helm-do-ag instead of helm-ag #805
Fixes project search matching against the leading file name.

And ensures modeline remains disabled.
2018-08-15 21:19:59 +02:00
Henrik Lissner
104e01f588
Improve set-repl-handler!'s docstring 2018-08-15 21:19:59 +02:00
Henrik Lissner
9584dd6005
Ensure file-template snippets are loaded
In case :feature snippets is disabled.
2018-08-15 21:19:59 +02:00
Henrik Lissner
486d4a12e7
Fix wrong-type-argument error opening new files
Caused when either your snippets library is empty or a file-template
doesn't exist when expanded.
2018-08-15 21:19:56 +02:00
Patrick Elliott
55b5c7711b
Updated readme 2018-08-15 08:34:21 +02:00
Patrick Elliott
f5c1be44ba
Added quelpa recipe 2018-08-15 08:33:38 +02:00
Patrick Elliott
2929b58cde
Modified variable 2018-08-15 08:17:20 +02:00
Patrick Elliott
4280ea3418
Added readme. 2018-08-14 23:30:20 +02:00
Henrik Lissner
5bb40e6dd1
Merge pull request #802 from benj02/patch-3
Fix running make from inside doom
2018-08-14 23:28:58 +02:00
Patrick Elliott
fa223ceafd
Added basic coq support 2018-08-14 23:21:55 +02:00
Ben Johnson
94092081db
Fix running make from inside doom
The `term.el` package defines an environment variable `EMACS` inside its shell process, containing the Emacs and term.el version, in a string that looks like this: `26.1 (term:0.96)`. This interferes with the `bin/doom` command, which expects that environment variable to be a path to an Emacs binary. Trying to run make inside a doom terminal thus gives you this error:

```
Emacs isn't installed
make: *** [Makefile:5: all] Error 1
```

This simple fix just checks if `$EMACS` looks like a term version string, and ignores it if so.
2018-08-14 01:08:13 -07:00
Henrik Lissner
a824e04e92
lang/ruby: fix wrong-num-of-args error from setq 2018-08-14 09:33:42 +02:00
Henrik Lissner
cb38ffbd58
Merge pull request #799 from mdssjc/fixes-racket
Fixes Racket
2018-08-13 23:58:39 +02:00
Henrik Lissner
b8f1b90744
Remove set-company-backend!
Since racket-mode uses company-capf, it isn't necessary to set any default backends for it.
2018-08-13 23:57:10 +02:00
Henrik Lissner
9d7f8c359e
Add docstrings to helm project search commands 2018-08-13 21:47:56 +02:00
Henrik Lissner
77408ff12f
Refactor ivy project search API
The same as 7d617f15, but for ivy:

+ Heavily refactored +ivy-file-search
+ Removed -z flag from all engines by default
+ Changed the behavior of the universal argument for from-cwd
  interactive commands (e.g. +ivy/rg-from-cwd). It used to enable
  recursive searches, but now enables inclusion of hidden and compressed
  files in the search instead. *-from-cwd searches are always recursive
  now.
+ Now generates +ivy/X and +ivy/X-from-cwd commands dynamically.
+ Split +ivy/project-search into +ivy/project-search-from-cwd.
  Universal arguments are passed from these commands to their delegated
  engine command.
2018-08-13 21:47:56 +02:00
Henrik Lissner
f94b00887b
config/default: bind SPC b B/SPC b b appropriately
Depending on the status of feature/workspaces.
2018-08-13 21:47:56 +02:00
Henrik Lissner
2cc5d223fe
Rewrite how magit windows/popups are managed
The old policy was to invoke magit in fullscreen, but in practice, I've
found myself wanting to peek at other buffers (maybe even notes) while I
manage my project in version control.

So this change introduces two big changes and one fix:

+ Instead of a full-frame policy, we use full-column. e.g. Invoking
  magit-status will take up a full column of windows (and will restore
  them when you quit).
+ Popups are displayed below the current window if called from a magit
  buffer, otherwise as a popup at the bottom of the frame.
+ Fixes popups opening in a random window if called from a magit buffer
  in a popup.

This is only a start and needs more testing.
2018-08-13 21:47:56 +02:00
Henrik Lissner
391ac1cae5
Leverage cache in tide-project-root advise 2018-08-13 21:47:56 +02:00
Henrik Lissner
4c18fc81af
Ensure switch hooks don't reference dead buffers 2018-08-13 21:47:56 +02:00
Henrik Lissner
9c4d1c3b02
lang/php: replace ac-php with phpactor.el
phpactor is superior to phpctags, though it requires more setup.

phpactors.el is superior to ac-php, though it is in alpha.
2018-08-13 21:47:55 +02:00
Henrik Lissner
e0f2c260a1
Update lang/nix to reflect changes upstream
+ Restore nix-mode entry in auto-mode-alist
+ Add .drv entry to auto-mode-alist
+ Minor refactor for def-package! blocks
2018-08-13 21:47:55 +02:00
Henrik Lissner
5663778e36
Make TAB respect org-cycle-separator-lines #800
outline-toggle-children and org-cycle-hide-drawers didn't respect
org-cycle-separator-lines.
2018-08-13 21:47:55 +02:00
Henrik Lissner
90fa4a8c37
Add helm-ag-fuzzy-match support 2018-08-13 21:47:55 +02:00
Henrik Lissner
5714ff423a
Fix evil jumplist after jumping to ag match
helm-ag would formerly add multiple entries to the jump list. It now
only adds one, and recenters the window when jumping to an ag match.
2018-08-13 21:47:55 +02:00
Henrik Lissner
b149dcffd4
Replace esup with doom/profile-emacs #788
Since esup (called directly) doesn't work with Doom.
2018-08-13 03:50:17 +02:00
Henrik Lissner
25d9786edf
Add early-init-file support to doom/profile-emacs #788
And fix wrong-type-argument: stringp errors when running esup.

Also ensure that doom|run-all-startup-hooks sets after-init-time.
2018-08-13 03:47:33 +02:00
Henrik Lissner
7d617f1541
Refactor helm project search API
+ Heavily refactored +helm-file-search
+ Removed -z flag from all engines by default
+ Changed the behavior of the universal argument for from-cwd
  interactive commands (e.g. +helm/rg-from-cwd). It used to enable
  recursive searches, but now enables inclusion of hidden and compressed
  files in the search instead. *-from-cwd searches are always recursive
  now.
+ Now generates +helm/X and +helm/X-from-cwd commands dynamically.
+ Split +helm/project-search into +helm/project-search-from-cwd.
  Universal arguments are passed from these commands to their delegated
  engine command.
2018-08-13 03:47:33 +02:00
Henrik Lissner
b0c71c2492
Add +helm/workspace-mini command & bind to SPC b b
+ Rename +helm/persp-buffer-list to +helm/workspace-buffer-list
+ Silence compiler warnings when feature/workspaces is disabled
+ Throw error if feature/workspaces is disabled and these commands are
  called.
2018-08-13 03:47:30 +02:00
Henrik Lissner
f143a03221
Use set-company-backend!
Fixes incorrect usage of setq-local in a global context.
2018-08-13 02:59:38 +02:00
Marcelo dos Santos
2f7282af12 Input-method optional 2018-08-12 13:52:35 -03:00
Henrik Lissner
d692718ab4
Fix selecting deleted window error
Caused by focus/unfocus modeline fixes accessing possibly dead buffers.
2018-08-12 18:25:09 +02:00
Marcelo dos Santos
36ac08f3fa Company-capf needs to be the first 2018-08-12 13:13:25 -03:00
Henrik Lissner
69e992e54a
lang/python: minor reformatting 2018-08-12 02:46:55 +02:00
Henrik Lissner
cbad18bf95
Fix wrong-type-arg hash-table-p error
In the rare case your private init.el has no doom! block.
2018-08-12 02:46:06 +02:00
Henrik Lissner
36044fccc9
defconst -> defvar for global constants
So they can be changed prior to being defined (e.g. for
doom/open-vanilla-sandbox).
2018-08-12 02:45:28 +02:00
Henrik Lissner
c530866f0a
Add option to load doom in vanilla sandbox
This adds the option to run elisp in an environment where doom core &
modules are loaded, but not your private modules or config.

Also updates the vanilla sandbox text template.
2018-08-12 02:45:01 +02:00
Henrik Lissner
cd280e0fa9
Load ox-pandoc conditionally
This allows users to disable it
2018-08-11 22:56:31 +02:00
Henrik Lissner
9ddfca44d1
Rename doom//reload-project -> doom/reload-project
Conform command to new naming convention (removed the doom//abc
convention).
2018-08-11 21:45:53 +02:00
Henrik Lissner
69eb2cd40d
lang/python: improve pipenv support 2018-08-11 21:18:21 +02:00