Commit Graph

145 Commits

Author SHA1 Message Date
Henrik Lissner
6808c46b58 💥 Change set-popup-rule! usage
Now accepts a flat plist of all its former parameters, including new
:parameters and :actions properties to increase your control over the
fate of your windows.

The old usage of set-popup-rule! is deprecated and may not work right!

The :ui popup module has also seen a major refactor to improve
efficiency and load times.

Sorry! This is the last "big" change before 2.1!
2018-06-18 02:34:16 +02:00
Henrik Lissner
44363cae40 General, minor refactor & revision
Across the board. All the boards.
2018-06-16 12:26:58 +02:00
Henrik Lissner
9c748600a5 Fix set-email-account! & minor refactor
Mentioned by @myme
2018-06-16 01:13:34 +02:00
Henrik Lissner
8ca88aba9e Replace :email with set-email-account! autodef 2018-06-15 18:03:50 +02:00
Henrik Lissner
d8b1e469bc Introduce autodefs to replace some settings
+ :popup -> set-popup-rule!
+ :popups -> set-popup-rules!
+ :company-backend -> set-company-backend!
+ :evil-state -> set-evil-initial-state!

I am slowly phasing out the setting system (def-setting! and set!),
starting with these.

What are autodefs? These are functions that are always defined, whether
or not their respective modules are enabled. However, when their modules
are disabled, they are replaced with macros that no-op and don't
waste time evaluating their arguments.

The old set! function will still work, for a while.
2018-06-15 03:42:01 +02:00
Henrik Lissner
6693db48af Mark +org-dir obsolete (use org-directory instead)
I prefer not to invent new variables when they aren't strictly
necessary. org-directory is one such variable (although the other path
variables are still necessary).
2018-06-15 01:05:22 +02:00
crshd
baa405babb Disable lui-mode line wrapping regardless of :feature spellcheck 2018-06-04 09:17:04 +02:00
Henrik Lissner
32a2a2b64d General, minor refactor
+ Group hooks with add-hook!
+ Sharpquote elfeed call
+ Extract elfeed buffer detector into function and ensure idempotency of
  doom-real-buffer-functions
2018-06-03 15:51:59 +02:00
Henrik Lissner
1e81a35461 Minimize dependence on map!
This is in preparation for general.el integration coming in 2.1.1. It is
very likely that map! will change (and even more, be split into several
macros). Not much, but change none-the-less. Specifically, the state
keywords (e.g. :nvi, :n, :i) will be removed in favor of a :state
property that takes a list, e.g. (normal visual insert).

In any case, both map! and general are also relatively expensive
compared to define-key and evil-define-key* (and the new define-key!
macro), so use that when we can.

This also means changes to either API won't affect Doom's modules in the
long term.
2018-06-03 15:46:00 +02:00
Henrik Lissner
8f847682fa app/rss: fix invalid window errors #646
The popup system cleans up after closed popup windows, so a
delete-window following a kill-buffer will operate on a dead window,
causing this error.
2018-06-02 18:20:09 +02:00
Henrik Lissner
c8a7005a22 app/twitter: decouple from feature/workspaces 2018-06-01 15:36:14 +02:00
Henrik Lissner
1a452b6842 💥 Change first arg of load! macro
load!'s first argument is no longer a symbol (that will cause
void-variable errors now) to save on unnecessary interning and simplify
compile-time logic. It accepts any valid form that evaluates to a string
now.

If you use load!, you need to change its argument to a string!

e.g. (load! +my-module) => (load! "+my-module")
2018-05-27 12:52:28 +02:00
Henrik Lissner
bb88411cc9 General minor refactor & docstring fixes 2018-05-14 20:55:55 +02:00
Henrik Lissner
e44fd886f2 Appease byte-compiler-sama 2018-05-14 20:37:13 +02:00
Henrik Lissner
966f7c77f9 app/twitter: :feature popup => :ui popup 2018-05-14 18:34:18 +02:00
Henrik Lissner
5a13c436ff app/twitter: add +twitter/ace-link command 2018-05-14 13:05:03 +02:00
Henrik Lissner
bc98f80fed app/twitter: redesign app keybind scheme (first draft)
Thanks to @ar1a for help
2018-05-14 13:05:03 +02:00
Henrik Lissner
c01a1597cf app/twitter: larger compose-tweet popup window 2018-05-14 13:05:03 +02:00
Henrik Lissner
b64b2764fa Fix header vars in doctor/packages.el files 2018-05-08 17:56:21 +02:00
Henrik Lissner
2d9fb67903 app/write: minor refactor (use :when instead of when) 2018-04-28 16:12:22 -04:00
Henrik Lissner
d67496e007 Fix vestigial references to warn! macro
This macro was removed some time ago (and moved to doom-doctor). Where
necessary, these warnings have been moved to that module's doctor.el
file.
2018-04-28 03:49:46 -04:00
Henrik Lissner
c23974e1d5 app/write: new +write-mode-map keymap 2018-04-28 03:28:59 -04:00
Henrik Lissner
ba24073a07 app/email: replace existing contexts instead of shadowing them #528 2018-04-18 01:08:56 -04:00
Henrik Lissner
f0c46e5930 app/email: disable obsolete html2text package 2018-04-04 18:22:19 -04:00
Henrik Lissner
8c486d741e app/email: fix mu4e-maildirs-extension 2018-04-04 18:01:34 -04:00
Henrik Lissner
a582bdf208 app/calendar: fix typo causing void-variable error 2018-04-04 01:05:20 -04:00
Henrik Lissner
a73ba9bc8a Merge pull request #500 from bandresen/develop
a few app/irc improvements
2018-04-02 06:27:52 -04:00
Henrik Lissner
7282553d2d app/calendar: minor indentation refactor 2018-04-02 05:50:07 -04:00
Henrik Lissner
f6f2c92373 app/calendar: don't require :feature workspaces 2018-04-02 05:49:55 -04:00
Benjamin Andresen
4f4176c646 Add: app/irc: include disconnect hook code 2018-04-02 08:08:13 +02:00
Benjamin Andresen
fbf80489da Document: app/irc: add docstrings for all variables 2018-04-02 08:07:44 +02:00
Benjamin Andresen
082b63610c Add: app/irc: pretty up a few more kinds of messages 2018-04-02 07:53:51 +02:00
Henrik Lissner
5c9ef4ee38 Replace doom-hide-modeline-mode w/ hide-mode-line-mode #423 2018-03-02 19:14:44 -05:00
Henrik Lissner
068a9345e3 app/email: load mu4e in =email 2018-02-24 20:26:35 -05:00
Henrik Lissner
da416736ef app/rss: minor refactor; new flag (+org) 2018-02-19 20:20:25 -05:00
Henrik Lissner
d6cba4253f app/calendar: minor refactor; rename +calendar-open-calendar-function 2018-02-19 20:19:54 -05:00
Henrik Lissner
04cb9a2691 app/calendar: general refactor 2018-02-19 15:18:36 -05:00
Henrik Lissner
c8c7bcabc0 app/calendar: fix path in comment header 2018-02-18 03:10:09 -05:00
Henrik Lissner
6291cb1979 app/email: improve mu4e lifetime management & fix =email 2018-02-18 03:09:39 -05:00
Henrik Lissner
7707aec28a Remove doom group
Not really useful, and Doom doesn't encourage using the Emacs Customize
interface.
2018-02-18 03:04:58 -05:00
Henrik Lissner
70c8e3cb52 app/rss: bind M-RET = open entry in browser 2018-02-17 04:56:27 -05:00
Henrik Lissner
9f471806fe app/rss: add :popup rule for elfeed-entry windows 2018-02-17 04:56:16 -05:00
Henrik Lissner
d8be0a5f4c app/rss: move default elfeed file 2018-02-17 04:56:03 -05:00
Henrik Lissner
8240771846 app/rss: fix +rss/quit & compact db 2018-02-17 04:55:35 -05:00
Henrik Lissner
bac73ec938 Replace warn => warn! 2018-02-14 07:46:38 -05:00
Henrik Lissner
3080b68c84 app/write: major refactor+rewrite
+ Make synosaurus unconditional
+ Move much of +write-mode into its hook
+ Conform README.org to template and expand it
+ Try to guess langtool-language-tool-jar
+ Update init.example.el entry
+ Remove redundant variables
+ Add +write-text-scale & +text-line-spacing variables
2018-02-13 17:50:58 -05:00
fuxialexander
13e2239fcd Add: add mixed-pitch-mode to +write-mode 2018-02-11 17:05:16 +08:00
fuxialexander
562b8ba431 Add: extend +write module 2018-02-11 17:04:30 +08:00
Sergey Trofimov
efce68bc29 Make elfeed-org ready at elfeed start. 2018-02-10 19:52:00 +03:00
Henrik Lissner
414383e5f4 Remove vestigial references to doom/{next,previous}-buffer 2018-02-04 05:05:40 -05:00