Commit Graph

31 Commits

Author SHA1 Message Date
Foivos Zakkak
a1a627d871
Add links to plugins in app/write/README.org 2019-10-10 14:22:25 +03:00
Foivos Zakkak
7b3bbe68c6
Fix #+SINCE in app/write/README.org 2019-10-10 01:43:16 +03:00
Foivos Zakkak
fe4bb70a18
Reformat app/write/README.org to match __doom-readme template 2019-10-10 01:20:35 +03:00
Henrik Lissner
a0f0bc836f
Merge pull request #1623 from MannySchneck/languagetool-macos-fix
fix: bump languagetool jar search depth on macos
2019-08-07 21:45:09 -04:00
Manny Schneck
9e3f92a3a4 fix: bump languagetool jar search depth on macos
On macos, the libexec directory for languagetool, as installed by brew,
lives in a version directory. To find the jar, we need to increase the
search depth, since the version directory will change with every version.

Example of brew-installed languagetool:
--------
$ tree -L 2 /usr/local/Cellar/languagetool
=>
/usr/local/Cellar/languagetool
└── 4.6
    ├── CHANGES.md
    ├── CHANGES.txt
    ├── COPYING.txt
    ├── INSTALL_RECEIPT.json
    ├── README.md
    ├── bin
    └── libexec
2019-07-31 12:08:26 -05:00
Henrik Lissner
76cacb5bfe
💥 Rename def-package! -> use-package!
Calling this pivotal macro "def-package!" has frequently been a source
of confusion. It is a thin wrapper around use-package, and it should be
obvious that it is so. For this reason, and to match the naming
convention used with other convenience macros/wrappers, it is now
use-package!.

Also changes def-package-hook! -> use-package-hook!

The old macros are now marked obsolete and will be removed when straight
integration is merged.
2019-07-23 12:50:45 +02:00
Henrik Lissner
20720cda61
Remove visual-fill-column package from Doom core
It is not essential enough to keep in Doom core. I'm working on a new
module (or a rewrite for app/write) to replace it.
2019-05-17 01:58:27 -04:00
Henrik Lissner
77510ed2d8
app/write: monospaced indentation in org 2018-10-06 20:44:25 -04:00
Edwin Török
58dd73030c +write-mode: initialization functions were not run
setting +write-mode-hook had no effect because +write-mode-hook was not
defined yet, it is only defined by the minor mode definition inside
autoload.el (which didn't get autoloaded yet).

Due to this when activating `+write-mode` the `mixed-pitch-mode` did not
get activated.

Fix this by moving these all to autoload.

Signed-off-by: Edwin Török <edwin@etorok.net>
2018-10-03 23:03:11 +01:00
Henrik Lissner
7d3ffdff06
Remove third line in section headers
This is truly important stuff. We've saved many lives with this update.
2018-09-09 09:58:19 -04:00
Henrik Lissner
4f671c3acb
Fix stringp error caused by app/write's doctor
Caused by langtool-langauge-tool-jar not being set (because defvar won't
change a defined variable), and app/write/doctor.el uses it in a
file-exists-p call, which throws the stringp error if given anything
other than a string.
2018-08-25 20:58:42 +02:00
Henrik Lissner
a7da9a4738
💥 Rewrite line numbers system for Emacs 25
This removes the various doom-line-number* variables and replaces it
with the Emacs 26 display-line-numbers API, which I've ported to Emacs
25.x (however, it uses nlinum under the hood, and not all of
display-line-numbers options are supported).
2018-08-21 03:34:39 +02:00
Henrik Lissner
26cc2a4f8a
app/write: don't tamper with org-indent-mode 2018-07-31 19:12:40 +02:00
Henrik Lissner
9079fdd9ec
app/write: fix +write-mode not disabling other modes 2018-07-31 19:11:41 +02:00
Henrik Lissner
0a746bdf1e
app/write: fixed-pitch for org-todo & line numbers 2018-07-31 19:11:10 +02:00
Henrik Lissner
a7bef8ec88
app/write: refactor
Removed autoloads that are already defined by packages.
2018-07-31 18:41:34 +02:00
Henrik Lissner
8f3f31bac8
Fix hardcoded language-tool path on MacOS
Reported by @jwintz
2018-06-26 18:58:07 +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
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
Henrik Lissner
c7254e7bdc
Major optimization refactor, across the board
+ enable lexical-scope everywhere (lexical-binding = t): ~5-10% faster
  startup; ~5-20% general boost
+ reduce consing, function calls & garbage collection by preferring
  cl-loop & dolist over lambda closures (for mapc[ar], add-hook, and
  various cl-lib filter/map/reduce functions) -- where possible
+ prefer functions with dedicated opcodes, like assq (see byte-defop's
  in bytecomp.el for more)
+ prefer pcase & cond (faster) over cl-case
+ general refactor for code readability
+ ensure naming & style conventions are adhered to
+ appease byte-compiler by marking unused variables with underscore
+ defer minor mode activation to after-init, emacs-startup or
  window-setup hooks; a customization opportunity for users + ensures
  custom functionality won't interfere with startup.
2017-06-09 00:47:45 +02:00
Henrik Lissner
d8e3d853a9 ui/doom: centralize doom-buffer-mode activation 2017-05-16 18:05:39 +02:00
Henrik Lissner
5491fd552e Replace nlinum with linum 2017-05-13 22:40:52 +02:00
Henrik Lissner
15ed040fe8 app/write: flesh out config (wip) 2017-04-28 03:56:08 -04:00
Henrik Lissner
4a12988561 app/write: remove doom-buffer-mode (buggy) 2017-03-09 00:36:38 -05:00
Henrik Lissner
2752cdc9b9 Add modules/app/write (WIP) 2017-03-08 21:34:03 -05:00