Commit Graph

7034 Commits

Author SHA1 Message Date
35e5a47e9f Rewrote indentation detection
More robust and easier to customize.
2018-07-29 19:31:32 +02:00
088480047c Polish & move new modeline into :ui modeline
Removes modeline library out of core-ui and contains them in :ui
doom-modeline and :ui modeline.

:ui modeline will eventually replace :ui doom-modeline, but is still
considered experimental. This update provides makes it much more stable
and closer to being feature complete.
2018-07-29 19:31:32 +02:00
db8ed4aac6 lang/php: add +hack support 2018-07-29 17:42:00 +02:00
6cfbeaa4f6 Fix (cl-)?defmacro autodefs
They were formly inserted with (cl-)?defmacro replaced with nil,
otherwise.
2018-07-29 17:42:00 +02:00
ea175180ef Fix incorrect load-file-name in autodef conditions
Causing errors where featurep! calls in ;;;###autodef cookie conditions
couldn't resolve the correct module from load-file-name.
2018-07-29 17:42:00 +02:00
770463aff2 Don't copy macro autodefs into autoloads verbatim
This makes it necessary to reload the autoloads anytime a macro is
modified at all.
2018-07-29 17:42:00 +02:00
143fdd17e1 Use insert mode only if git commit is empty 2018-07-29 17:42:00 +02:00
d094162d31 Refactor how git-timemachine loads magit-blame
Loading magit-blame immediately after git-timemachine is premature, only
one command uses magit-blame (git-timemachine-blame), so we defer it
until that command is called (also, it makes more sense to be in the
emacs/vc module, than tools/magit).
2018-07-29 17:42:00 +02:00
c87c2bd5a6 Remove redundant magit-completing-read-function 2018-07-29 17:41:59 +02:00
f3a3465c04 history-length = 250
Reduce from 500 to slim savehist data files and general Emacs memory
footprint.
2018-07-29 17:41:59 +02:00
e3dc3a6376 Shut up magit-todos-mode complaining about jT
I unbound it, stop complaining about it!
2018-07-29 17:41:59 +02:00
a2ffbe4ede Add new emacs/hideshow module
Brings better default code folding support to various languages, like
yaml, ruby, matlab, haml and vimrc. Hideshow is still quite
unsophisticated and will need the help of another package for complete
code folding functionality. Perhaps origami or vimish fold.

The code-folding functional in the feature/evil module will soon be
replaced by that.
2018-07-29 17:41:59 +02:00
05d9a83ff7 Unpropertize kill-ring in savehist data
This speeds up startup marginally.
2018-07-29 17:41:59 +02:00
2e25989dc5 undo-tree-enable-undo-in-region = nil
Try to save off the elusive and annoying "unrecognized entry in undo
list undo-tree-canary" error produced by undo-tree.
2018-07-29 17:41:59 +02:00
f0f2c92b8d lang/php: prioritize phpctags in PATH
And fail more gracefully if phpctags isn't installed
2018-07-29 17:41:59 +02:00
5aef36951d Goto file keybind in helm-ag-edit buffers 2018-07-29 17:41:59 +02:00
44bf6861a6 Fix overeager theme reloading when creating frames 2018-07-29 17:41:59 +02:00
c75b2a36ab Don't reload theme at startup if already enabled 2018-07-29 17:41:58 +02:00
46c49cf55a app/twitter: fix missing epa--decode-coding-string
In latest Emacs 27, this alias is missing.
2018-07-29 17:41:58 +02:00
22a2d1de60 app/twitter: add support for +new modeline 2018-07-29 17:41:58 +02:00
593666933d Convert old def-modeline! from macro to function
This makes it easier to use dynamically, and ensures that
doom--prepare-modeline-segemnts isn't run prematurely (at macro
expansion time).
2018-07-29 17:41:58 +02:00
df233eb1a9 lang/pdf: fix compatibility with +new modeline 2018-07-29 17:41:58 +02:00
9abafcf74a Rename def-modeline! -> def-modeline-format!
As to differentiate it from the old def-modeline! macro. This only
affects users of the +new modeline.
2018-07-29 17:41:55 +02:00
6bcc01f591 Merge pull request #754 from patrl/latexRefactor
DONE: large refactor of latex
2018-07-29 17:39:46 +02:00
2a3c2ce7f7 Merge pull request #772 from mdssjc/racket-lang
Add Racket lang
2018-07-29 17:38:37 +02:00
960bde480d Install ob-racket conditionally
I'll move this to lang/org/packages.el later (not easy to do from the github text editor).
2018-07-29 17:29:27 +02:00
238e37a171 lang/racket: refactor and cleanup
+ Removed highlight-quoted block because `highlight-quoted-mode` is already autoloaded by the package
+ Removed org-babel-do-load-languages because lang/org/+babel already has a built-in autoloader for ob-* packages.
+ Removed flycheck-mode from racket-mode hook because it is enabled globally in :feature syntax-checker
+ Removed highlight-numbers-mode from racket-mode-hook because it is enabled on prog-mode-hook in core-ui (as of #770)
+ Fix racket popup rule regexp
+ Remove popup rules that were redundant with the defaults
+ Remove racket-mode-specific company-frontends value, looks like personal preference, otherwise should be set in a separate hook function that is easily recognized and disabled, if the user desires.
+ Remove :interpreter and :mode properties because they are already registered by the racket-mode package.
+ Move racket-unicode-input-method-enable into :hook property (to defer the config)
2018-07-29 17:22:01 +02:00
d75ffd3851 Merge pull request #770 from ar1a/highlight-numbers
Highlight-numbers on every prog-mode
2018-07-29 16:52:36 +02:00
4f3ce4d06d Move highlight-numbers-mode config
Into plugins section in core-ui
2018-07-29 16:51:06 +02:00
d8cd4bdf03 Add Racket lang 2018-07-29 10:50:17 -03:00
90d09e6f93 Highlight-numbers on every prog-mode 2018-07-29 12:19:56 +10:00
a07126f611 Revise code comments in smartparens config 2018-07-24 20:08:11 +02:00
f58f3c3604 ui/nav-flash: refactor
+ Add +nav-flash-exclude-commands to control where
  +nav-flash-blink-cursor-maybe should not trigger nav-flash.
+ Rename API to conform to Doom naming conventions
  + +nav-flash-blink-cursor
  + +nav-flash-blink-cursor-maybe
  + +nav-flash|delayed-blink-cursor
  + +nav-flash|blink-cursor
  + +nav-flash|blink-cursor-maybe
  + +nav-flash*blink-cursor
2018-07-24 20:04:03 +02:00
ebd3b0223e Fix followed org links not recentering correctly
Links like `file:test.cpp::45` would open file.cpp, but end up somewhere
else than line 45. Same with links like `file:test.cpp::int main()`.
2018-07-24 20:01:42 +02:00
277915b28c Fix order of +(helm|ivy)-project-search-engines 2018-07-24 14:18:44 +02:00
a8d41a93c0 Fix helm project search commands
Used ivy variable in helm commands, causing a void-variable error.

Reported by @ar1a
2018-07-24 14:07:13 +02:00
189ff349cc Merge branch 'latexRefactor' of https://github.com/patrl/doom-emacs into latexRefactor 2018-07-23 15:48:23 +02:00
9a23492888 Removed unicode-math setup 2018-07-23 15:47:40 +02:00
e865526c75 Add +(helm|ivy)-project-search-engines variables
This allows you to control what search engines for project-search
commands (bound to SPC / p) to try, and in what order. If you didn't
want to use ripgrep, for instance, remove 'rg from these variables, or
move it to the end of the list.
2018-07-23 00:06:47 +02:00
6b06cd32ac Add :autosave t :ttl nil to Org src popups
Suggested by @fuxialexander
2018-07-22 17:38:24 +02:00
399194e868 Autoload +popup--init
Fixes #766
2018-07-21 14:00:02 +02:00
ec49220740 emacs/dired: add-hook -> :hook 2018-07-21 01:29:38 +02:00
28e21352ec Have popup manager handle treemacs windows
Other windows would be resized slightly incorrectly because treemacs
opens as a fixed split, rather than a side window. This change forces it
to be a side window, which resolves the problem _and_ restores the
functionality of balance-windows, which is disabled when a fixed split
is present.
2018-07-21 01:20:59 +02:00
7f284e98b6 Fix helm-M-x help popup not properly closing
On successive TAB presses on a command
2018-07-21 01:20:05 +02:00
41cf970c75 Autosave org capture popups
Prevents unsaved confirmation prompts when the org-capture popup is
closed.
2018-07-21 01:00:11 +02:00
1e40f421f9 Merge pull request #765 from patrl/markdownTweaks
Markdown tweaks
2018-07-21 00:59:47 +02:00
faf59ff2a9 undo header scaling 2018-07-20 14:23:17 +02:00
8b00a208cf typo 2018-07-20 13:56:04 +02:00
ccd6ceab86 fix typo 2018-07-20 13:54:23 +02:00
75278663cc header scaling 2018-07-20 13:48:02 +02:00