Commit Graph

618 Commits

Author SHA1 Message Date
32754a6d07 lang/org: fix html export by installing htmlize package 2018-01-31 14:32:52 -05:00
4dbca5b21f lang/python: kill anaconda processes after killing last python buffer 2018-01-31 05:33:26 -05:00
15da107e04 lang/php: basic :lookup support & don't warn about missing phpctags
Only adds :documentation support for now.
2018-01-28 21:36:48 -05:00
45a490882f lang/web: open templates/.+\.php$ in web-mode 2018-01-28 20:38:14 -05:00
0cc3b34fa2 lang/org: fix errors lazy-loading mismatched babel libraries
The ob-C.el library takes care of C, C++ and D. This modifies the babel
lazy-loader to take this into account. Name => library mappings are
defined in +org-babel-mode-alist.
2018-01-28 17:20:28 -05:00
78cb47a072 lang/org: lazy-load babel libraries
Removes +org-babel-languages and no longer eagerly loads babel
libraries. If an ob-*.el exists for the language, it will be loaded once
you execute its src block.

Warning: this may interfere with tangling. An unloaded library can't
register a language extension in org-babel-tangle-lang-exts (if any).
This means babel won't be able to figure out the correct file extension
for certain src blocks.

Either load the package explicitly or provide a filename + extension for
the TARGET-FILE argument:

  (require 'ob-rust)
  (org-babel-tangle-file "notes.org")
  ;; or
  (org-babel-tangle-file "notes.org" "notes.rs")
2018-01-28 15:45:31 -05:00
01a5e9a1d7 lang/org: fix uninstallable centered-window-mode package
Turns out centered-window-mode isn't in any ELPA repo. Was it removed?
I'm not sure, so it's now fetched directly from its github repo.
2018-01-28 15:44:58 -05:00
294f858875 lang/data: enable flycheck-mode for json-mode 2018-01-28 04:29:10 -05:00
acb77c8407 lang/web: conditionally define js sub-modes 2018-01-28 04:28:15 -05:00
ac825754c6 lang/python: move :lookup setting to anaconda-mode block 2018-01-24 03:16:36 -05:00
12ac162276 lang/python: set :company-backend sooner #369
company-anaconda was added to company-backends too late, causing
code completion not to work in first-time python buffers.
2018-01-24 03:15:49 -05:00
0e392372df lang/org: fix relative file attachments #370
Affected non-image files having one-too-many ../ in its path.
2018-01-24 02:20:31 -05:00
6b164a6103 lang/csharp: adapt to :lookup 2018-01-19 04:17:19 -05:00
2bfb4accf2 Merge pull request #348 from UndeadKernel/rtags-fix
Correctly report when rtags's client or server are not found.
2018-01-11 13:11:47 -05:00
c59f584444 Correctly report when rtags's client or server are not found. 2018-01-11 15:49:50 +01:00
2b98e550e8 Reverse load-path to fix precedence issues
Originally, I built the load-path with site-lisp paths first, then
packages. There was a modest ~10% startup boost doing this, because
there were considerably more site packages loaded at startup than
plugins.

However, this meant built-in packages would get precedence over plugins,
which is undesirable. In org's case, I simply modified the load-path
in lang/org/init.el. However, this issue has cropped up again in #340.

Evidently, that 10% boost may not be worth the risk it imposes, so I've
rearranged the load-path with packages first.
2018-01-10 22:47:35 -05:00
669b3cbbb0 lang/cc: fix void-function irony-mode error #341 2018-01-10 22:25:09 -05:00
e571060063 Merge pull request #332 from UndeadKernel/latex_module
Latex module revamped
2018-01-10 04:16:27 -05:00
4a8825e91d Merge pull request #336 from Dragnucs/patch-1
Add Vue file to web mode
2018-01-10 04:15:46 -05:00
56a3c81778 Correct def-setting and use string-empty-p.
Change default ivy-bibtex behavior to insert bibliography.
2018-01-09 14:19:02 +01:00
32c3dd847e Add Vue file to web mode
Support `.vue` Vue.js files in web-mode.
2018-01-09 11:27:48 +00:00
3dbf994871 lang/org: close agenda buffers after org-agenda
Experimental. Running org-agenda would leave leftover open buffers, this
hook cleans them up.
2018-01-08 20:42:43 -05:00
6853196017 lang/org: general refactor; split init into hooks
lang/org's initialization process is now split up into hooks on
org-load-hook. This approach is cleaner and easier to customize. I also
removed the escape binding in org-agenda-mode-map, as the popup system
makes it redundant.
2018-01-08 20:41:56 -05:00
d443aed25c feature/eval: improve compatibility with feature/popups
This makes quickrun, *doom eval* and *Pp Eval Output* buffers behave
better.

Eval output buffers should a) shrink themselves to the size of their
output (within reason), b) *not* grab focus, and c) be easy to close
from afar with C-g/Escape.

Gotchas:

1. Quickrun gets output asynchronously, so we shrink it on
   quickrun-after-run-hook, not in the popup rule.
2. *doom eval* and *Pp Eval Output* opens with its output ready, so the
   popup system may shrink those to fit.
3. *doom eval* and *Pp Eval Output* handle window selection themselves.
   Let them by setting the select window parameter to #'ignore.
2018-01-08 17:30:54 -05:00
e91cb11243 Latex module revamped
Latex language module with previews, latexmk, reftex, bibtex and others.
Completion with company mode.
Selection of bibliography using Ivy or Helm.
Later preview panel or okular as viewers.
LatexMk for compiling code.
Prettified indentation with adaptive-wrap along with good indentation of environments.
Additional fontification of common commands.
2018-01-08 19:18:37 +01:00
35594f0729 lang/org: fix todo(t) capture target (incorrect path) 2018-01-07 22:20:11 -05:00
4024437cfb lang/latex: don't forcibly hide modeline 2018-01-07 00:35:59 -05:00
c0680e6fa3 lang/org: refactor load-path mods & don't forget it
Previously, Doom would forget lang/org's modification of the load-path
if you call doom//reload-load-path (which is called when you do package
management with an open Emacs session).

No more!
2018-01-07 00:15:58 -05:00
31a4244686 Rethink what Doom loads at startup and manually
Better to simply load what we need, when we need it, rather than set up
autoloads for every litte thing.
2018-01-07 00:15:57 -05:00
d738a8d13a lang/org: fix unit test 2018-01-06 04:15:40 -05:00
82abc8647a lang/org: remove recursive require (not necessary anymore?) 2018-01-06 04:15:19 -05:00
185bf58c9e lang/org: add elpa org to load-path in init.el #327
Let's try to change the load-path sooner...
2018-01-06 04:02:05 -05:00
b28f6ed477 General minor refactor & comment revision 2018-01-06 03:03:02 -05:00
08b479b06f Rename popup parameter escape-quit => quit 2018-01-06 02:42:53 -05:00
3cbddbfd88 Generalize +evil-esc-hook into doom-escape-hook
This lets vanilla Emacs users in on having a universal "escape" key.
2018-01-06 02:38:39 -05:00
91357a3e5d 💥 Replace core-popup with new feature/popup module
This is a breaking change! Update your :popup settings. Old ones will
throw errors!

Doom's new popup management system casts off its shackles (hur hur) and
replaces them with the monster that is `display-buffer-alist`, and
window parameters.

However, this is highly experimental! Expect edge cases.  Particularly
with org-mode and magit (or anything that does its own window
management).

Relevant to #261, #263, #325
2018-01-06 02:17:43 -05:00
42cee2e046 Update :jump => :lookup 2018-01-05 23:57:48 -05:00
55ad843a09 lang/org: fix byte-compiler using outdated, built-in org #327
During runtime, the new version of org (installed via ELPA) is added to
load-path, but this doesn't happen during compile-time. Wrap it in
eval-and-compile and that changes.
2018-01-05 13:43:13 -05:00
dd7a26352b lang/cc: remove unused arg in +cc/reload-compile-db
Appeases the byte-compiler (praise be!)
2018-01-05 13:16:56 -05:00
1371d34149 💥 Replace feature/jump with feature/lookup
+ Adds Dash docset integration (with helm or ivy support)
+ Adds devdocs.io integration
+ Three new settings: :lookup, :devdocs and :docset
2018-01-04 17:11:54 -05:00
4af4803e0b Merge pull request #323 from ocharles/patch-1
haskell: Fix warning about ghc-mod
2018-01-04 17:01:01 -05:00
2598d48bba Add org elpa archive + update lang/org #327
Now that the org ELPA archive has https support, we can add it to
package-archives. This fixes some 'org is unavailable' errors when
installing org packages that have declared earlier versions of org as
a dependency.

This also makes installing a newer version of org-mode much simpler.
Woo!
2018-01-04 16:16:45 -05:00
7556762d98 lang/latex: refactor (WIP) 2018-01-04 16:16:45 -05:00
feff92c626 Fix company-auctex not initializing properly in Auctex buffers #326
Caused because AucTex's LaTeX-mode reports its major-mode as
'latex-mode. A check in :company-backends expects major modes to have
matching hooks (e.g. LaTeX-mode-hook => LaTeX-mode).
2018-01-04 16:16:45 -05:00
8ef3cf8ea7 lang/python: fix anaconda-mode-find-references typo 2018-01-04 16:16:44 -05:00
824393043c lang/emacs-lisp: add imenu support for def-test!/ert-deftest 2018-01-04 16:16:44 -05:00
e688bd8c85 haskell: Fix warning about ghc-mod
The warning confusingly states that `ghc-mode` couldn't be found, implying it's some kind of emacs mode. However, the predicate is actually checking for the `ghc-mod` executable, which is something entirely different.
2018-01-04 11:06:05 +00:00
db5910da3c lang/org: don't error out if +org-dir doesn't exist 2018-01-03 13:15:25 -05:00
8e7b822062 Remove core-popup coupling
New popup management system coming soon!
2018-01-03 03:44:34 -05:00
c9a878a62f Conform unit test macros to naming scheme 2018-01-01 16:59:30 -05:00