Commit graph

1485 commits

Author SHA1 Message Date
Henrik Lissner
efed58fcc8
Merge pull request #948 from patrl/org-pdfview
Open org links with `pdf-view-mode` (with `:tools pdf`)
2018-10-15 00:15:20 -04:00
Henrik Lissner
b1f249afab
lang/org: lazyload & refactor org-pdfview 2018-10-15 00:14:27 -04:00
Henrik Lissner
752b92570d lang/latex: defconst -> defvar #955
Allow +latex-viewers to be set sooner.
2018-10-12 14:20:45 -04:00
Patrick Elliott
623195e312
Checkboxes -> TODOs 2018-10-11 10:41:39 +02:00
Patrick Elliott
251e9c0244
When :tools pdf is enabled, open org links to pdfs with pdf-view-mode 2018-10-10 22:00:30 +02:00
Patrick Elliott
b59a27a160
Built-in capture templates add a link to the file from where capture was initiated 2018-10-10 17:36:25 +02:00
Michael Fiano
215ef4595c Added cider config and key bindings 2018-10-07 22:20:18 -04:00
Michael Fiano
5735a994e0 Do not display debugger or inspector buffers in a popup window. 2018-10-07 21:50:46 -04:00
Henrik Lissner
cdf745e72a
map!: remove buffer-local :desc properties
which-key labels are registered globally, and will not work for
buffer-local keybinds. Until general is brought in, we'll have to suffer
label-less localleader keybinds.
2018-10-07 21:34:24 -04:00
Sebastian Wild
b89fcd8726
Replace Coq-Mode abbreviations with yasnippet
Since ProofGenerals abbreviation usage interfers with
evil-mode, this empties the abbreviation table of coq-mode.
The abbreviations got transformed into yasnippet snippets
and put into hlissner/emacs-snippets#4.
2018-10-07 09:18:25 +02:00
Henrik Lissner
a078e3f4b2
lang/common-lisp: fix sly-mode localleader keys
This fixes a bug that caused evil keybinds on sly-mode-map to be
inaccessible until you switched states.
2018-10-07 00:47:14 -04:00
Henrik Lissner
ba93402dcc
lang/python: fix typo in +python-version
Thanks to @ztlevi
2018-10-07 00:46:50 -04:00
Henrik Lissner
34d7e327b2
lang/common-lisp: sly-eval-region = eval handler
This allows you to use the `gr` operator to evaluate code on-the-fly.
2018-10-07 00:35:41 -04:00
Henrik Lissner
e70a8d925e
lang/common-lisp: fix consp errors on load 2018-10-07 00:35:25 -04:00
Henrik Lissner
d84b516cf4
lang/common-lisp: don't start sly in temp buffers
Org source blocks use a temp buffer in lisp-mode to natively fontify CL
blocks, which can trigger sly. This prevents that.
2018-10-07 00:33:58 -04:00
Henrik Lissner
f416e28857
lang/org: refactor default org-todo-keyword-faces
To ensure consistency
2018-10-06 20:57:43 -04:00
Henrik Lissner
675f4fa821
lang/latex: enable flyspell-mode after local-vars
Gives setq hooks and file/directory-local variables the opportunity to
take effect before flyspell activates.
2018-10-06 20:56:18 -04:00
Henrik Lissner
06cf518af8
lang/java: set meghanada-use-* vars earlier
Fixes a race condition where certain features ended up enabled too late
for the first buffer.
2018-10-06 20:44:25 -04:00
Henrik Lissner
d21887149f
Minor refactor/reformatting 2018-10-06 20:44:25 -04:00
Henrik Lissner
9185da824c
lang/python: remove +ipython flag
+ Replace +ipython functionality with +python/open-ipython-repl command.
+ Use python-shell-interpreter for eval handlers, repl and python
  version detection.
+ Removed various python-shell-* variables for ipython; they are already
  supported upstream.
2018-10-06 20:44:25 -04:00
Henrik Lissner
7c6e2e705f
lang/python: add Ipython/Jupyter REPL commands 2018-10-06 20:44:25 -04:00
Dominik Süß
c9aca5a81e Updated documentation to use better gocode fork (supports Go 1.11+) 2018-10-06 14:47:06 +02:00
Henrik Lissner
6a17b193ea lang/purescript: fix set-lookup-handler! indent 2018-10-04 23:44:17 +02:00
Martin Øinæs Myrseth
39059702c8 lang/haskell: Register intero-company backend 2018-10-04 21:56:43 +02:00
Martin Øinæs Myrseth
e44bb536b9 lang/purescript: Add lookup handlers
Add psc-ide-goto-definition and purescript-pursuit as definition and
documentation lookup handlers.
2018-10-04 21:56:43 +02:00
Edwin Török
649b0795de fix org/config typo
In toplevel form:
../modules/lang/org/config.el:380:1:Warning: Unused lexical variable
    ‘seperator’

Signed-off-by: Edwin Török <edwin@etorok.net>
2018-10-04 00:38:05 +01:00
Henrik Lissner
1b83d50e1c
Merge pull request #926 from MannySchneck/js2-mjs
lang/js: add .mjs to js2 auto-mode regex
2018-10-03 19:12:32 -04:00
Manny Schneck
8f2fd970e6 lang/js: add .mjs to auto-mode-alist regex 2018-10-03 18:08:28 -05:00
Henrik Lissner
b4b19c40bf
company-capf = universal default company-backend
Also removes company-files from sly-mrepl-mode, because sly's capf
completion includes file completion.
2018-10-03 11:18:58 -04:00
Henrik Lissner
46c3ff782a
lang/common-lisp: fix rainbow-delimiters-mode hook 2018-10-03 01:41:33 -04:00
Henrik Lissner
7a2bad551c
lang/common-lisp: fix comapny in sly repl 2018-10-03 01:34:26 -04:00
Henrik Lissner
ce1198f23d lang/common-lisp: don't autopair '/` in sly-mrepl
Credit goes to @mfiano for this
2018-10-03 01:27:05 -04:00
Henrik Lissner
a251c81aa3 lang/common-lisp: add localleader keys & hydras
Credit goes to @mfiano for these keybinds.
2018-10-03 01:27:05 -04:00
Henrik Lissner
fc0d074f15 lang/common-lisp: S-RET => newline-and-indent (REPL)
Suggested by @mfiano
2018-10-03 01:27:05 -04:00
Henrik Lissner
7f1b526f64
Set python-shell-* vars early
To make it easier for users to overwrite them in thir config.el (without
an after! block).
2018-10-03 00:05:45 -04:00
Henrik Lissner
63b195b133
lang/python: fix stringp errors when opening REPL
Caused my misuse of if-let* to let-bind dynamic variables. The expanded
code doesn't quite work out the way I expected, causing
python-shell-interpreter to be nil regardless of which side of the
if-else statement ran.
2018-10-02 23:52:29 -04:00
Henrik Lissner
270b381ce0
lang/ruby: fix reference to +python-version-cache 2018-10-01 12:28:58 -04:00
Henrik Lissner
05160a6526
lang/org: default org-agenda-files to org-directory 2018-09-30 15:14:01 -04:00
Henrik Lissner
fd19698927
doom|hack-local-variables => MODE-local-vars-hook
Uses a less destructive method (the same that Spacemacs uses) than the
one introduced in 13cee68, by introducing MODE-local-vars-hook hooks,
which run after local vars have been initialized.

The old method was to call `hack-local-variables` *before* mode hooks
run, however, this causes variables set by modes to have higher
precedence than local vars, which is unacceptable.

Also moved intero-mode & dante-mode to haskell-mode-local-vars-hook
2018-09-29 15:01:35 -04:00
Henrik Lissner
53fe7a1f04 Refactor Project API to reflect changes upstream
projectile-project-root no longer returns `default-directory` if not in
a project (it returns nil). As such, doom-project-* functions (and their
uses) have been refactored.

+ doom-project-p & doom-project-root are aliases for
  projectile-project-p & projectile-project-root.
+ doom-project-{p,root,name,expand} now has a DIR argument (for
  consistency, since projectile-project-name and
  projectile-project-expand do not).
+ The nocache parameter is no longer necessary, as projectile's caching
  behavior is now more sane.
+ Removed some projectile advice/hacks that are no longer necessary.
+ Updated unit tests
2018-09-28 21:13:27 -04:00
Henrik Lissner
b43888901f lang/cc: add rotate patterns for c++-mode
These can be used by pressing ! in normal mode, over rotatable regions
of text.
2018-09-28 21:13:27 -04:00
Henrik Lissner
523c2a114b lang/web (tests): Remove empty before-each block 2018-09-28 21:13:27 -04:00
Henrik Lissner
15991b5639 Refactor quiet! to be less destructive
It's possible for the debugger to be invoked from inside code wrapped in
a (quiet! ...) call. The debugger pauses Emacs in a broken state where
the functions locally rebound by quiet! (e.g. message, load-file,
write-region, etc) are never returned to their original definitions.

This attempts to reduce that probabilityby changing how quiet! silences
code. Rather than silencing them completely, they will be logged
to *Messages* but not displayed in the echo area.

Also, quiet! is now used less, where it isn't strictly needed (or where
inhibit-message is sufficient).
2018-09-28 21:13:27 -04:00
Henrik Lissner
078e3028a6 Minor, general comment revision 2018-09-28 21:02:59 -04:00
Henrik Lissner
29ad900c1f
lang/css: refactor +css/toggle-inline-or-block
Replaces instances of replace-regexp (interactive-only functions),
removing the need for with-no-warnings and quiet!.

Improves regexp responsible for compacting whitespace in between
properties, which reduces compaction of whitespace in string arguments.
2018-09-27 22:44:07 -04:00
Henrik Lissner
01dde97776
lang/org: tweak org-todo-keywords{,-faces} 2018-09-26 20:44:54 -04:00
Henrik Lissner
c7032cf8b0
lang/web: fully remove nil autopair group
This removes the nil autopair group, rather than just setting it to nil.
No functional different, it's [slightly] more performant.
2018-09-26 20:38:47 -04:00
Henrik Lissner
431ea613b0
lang/python: set PIPENV_MAX_DEPTH in eval handler
Instead of changing the cwd, which chould have other reprecussions for
the code about to be executed.
2018-09-26 20:38:02 -04:00
Henrik Lissner
da55ee2af2
lang/python: fix pipenv support for +python/repl 2018-09-26 20:37:35 -04:00
Henrik Lissner
68699c3d5b
lang/python: make repl/eval handlers respect pipenv 2018-09-26 12:28:32 -04:00