Commit Graph

33 Commits

Author SHA1 Message Date
Henrik Lissner
e05d7cfee0
Change flycheck initialization strategy
Initialize it globally and turn it off where needed, instead of enabling
it on demand. Also fixes void-function: flycheck-mode errors when
:feature syntax-checker is disabled. This is experimental.

Indirectly fixes #710
2018-06-22 01:49:20 +02:00
Henrik Lissner
fa4a9a38d4
Less intrusive error prefix for flycheck popups
The default character was taller than a line. My OCD won't have it.
2018-06-05 03:21:26 +02:00
Henrik Lissner
9c62ef9dfa
Fix flycheck-posframe errors #653
The +childframe check was too simple (and unnecessary, since the
posframe function autoloaded).
2018-06-05 03:20:19 +02:00
Henrik Lissner
09cb4f6716
Major refactor & optimization of how modules load their packages
Now that we are loading package autoloads files (as part of the
generated doom-package-autoload-file when running make autoloads), many
:commands properties are redundant. In fact, many def-package! blocks
are redundant.

In some cases, we can do without a config.el file entirely, and can move
into the autoloads file or rely entirely on package autoloads.

Also, many settings have been moved in their module's autoloads files,
which makes them available ASAP; their use no longer depends on module
load order.

This gained me a modest ~10% boost in startup speed.
2018-05-25 00:46:16 +02:00
Henrik Lissner
30e0ab6aef
feature/syntax-checker: new +childframe flag for popups 2018-05-09 12:17:23 +02:00
Henrik Lissner
afb92a8c7f
feature/syntax-checker: redesign tooltip support
Use flycheck-posframe in GUI Emacs (26+) and flycheck-popup-tip
everywhere else.
2018-05-07 19:26:31 +02:00
Henrik Lissner
cb8f12c7da
feature/syntax-checker: flycheck buffer upon leaving insert mode 2018-04-21 06:18:06 -04:00
Henrik Lissner
2a6029ddff
feature/syntax-checker: move popup-top/popup init into def-package! 2018-03-13 03:01:49 -04:00
Henrik Lissner
45c2221316
General update for docstrings and comments & minor refactor 2018-01-15 00:43:28 -05:00
Henrik Lissner
b741d77e78
feature/syntax-checker: autoload pkg-info-version-info #356 2018-01-13 15:09:17 -05:00
Vikash Kathirvel
507ee07513 Fix race between eldoc and flycheck by delaying flycheck 2018-01-12 16:11:18 +05:30
Yiming Chen
eb927290b5 Call flycheck-popup-tip-mode correctly
- Fix issue: Symbol’s function definition is void: flycheck-popup-tip
2018-01-09 12:00:35 +08:00
Henrik Lissner
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
Henrik Lissner
065091bdca
flycheck: use pos-tip in GUI Emacs (linux), popup-tip everywhere else
Long story short, `flycheck-popup-tip' works everywhere but only looks
*ok*.  `flycheck-pos-tip' looks great, but only in GUI Emacs on Linux.
So we want:

+ GUI Emacs (Linux): pos-tip
+ GUI Emacs (MacOS): popup-tip
+ tty Emacs (anywhere): popup-tip
2018-01-06 01:10:37 -05:00
Henrik Lissner
f277eddf1b
feature/syntax-checker: use flycheck-popup-tip on MacOS #318
pos-tip.el (what flycheck-pos-tip's uses) is buggy on MacOS, with no
guarantee where a popup may appear.
2018-01-05 14:43:50 -05:00
Henrik Lissner
c6677136c1
Move flycheck-cask to lang/emacs-lisp 2017-07-17 11:33:47 +02:00
Benjamin Andresen
1ba674077a Add: feature/syntax-checker: add flycheck-cask for emacs-lisp
This is used to set up the flycheck load-path correctly for emacs-lisp package
development.
2017-07-16 05:03:26 +02: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
fbe782df22 Heavily redesign keybinding design
+ SPC and SPC m as leader/localleader (spacemacs-ey)
+ Move all custom keybindings to private +bindings.el file
+ Redesign+rearrange keybindings
2017-05-28 02:48:20 +02:00
Henrik Lissner
85751c519b Refactor +evil-esc-hook 2017-05-25 12:22:05 +02:00
Henrik Lissner
dcc3b9a2fc Improve rule for flycheck popups 2017-05-19 17:07:32 +02:00
Henrik Lissner
c64526eb40 Move flycheck ui config to ui/doom 2017-05-16 22:21:21 +02:00
Henrik Lissner
4eafbf9078 feature/syntax-checker: fix permission errors in special/RO buffers 2017-05-16 00:27:29 +02:00
Henrik Lissner
581adcc1f5 feature/syntax-checker: refactor flycheck config 2017-05-14 12:07:12 +02:00
Henrik Lissner
653e80e655 Fix missing 'define-fringe-bitmap' function errors
If Emacs wasn't built with X, Cocoa or NS display support (as is the
case for evm emacs-25.1-travis build), the fringe library is missing and
throws errors.
2017-05-14 11:54:18 +02:00
Henrik Lissner
cce294fcf6 feature/evil: refactor evil-force-normal-state advice into +evil-esc-hook 2017-05-07 19:12:48 +02:00
Henrik Lissner
5ae94b765c PRAISE BE TO THE BYTE COMPILER FOR THY SHARP QUOTES 2017-04-17 02:17:10 -04:00
Henrik Lissner
0fc00b9a7c feature/syntax-checker: autoload pkg-info 2017-03-25 18:51:19 -04:00
Henrik Lissner
db7cf68775 General tweaks 2017-03-19 22:50:57 -04:00
Kalle Lindqvist
effc919b14 feature/syntax-check: fix typo 2017-03-03 12:24:39 +01:00
Henrik Lissner
33c88d4f82 Revert macros to ...! name convention (elisp doesn't like @...) 2017-02-23 00:06:12 -05:00
Henrik Lissner
9b32c8b95e Update modules/feature/syntax-checker 2017-02-20 00:26:08 -05:00
Henrik Lissner
ffff4167b9 Add modules/feature/syntax-checker 2017-02-20 00:26:07 -05:00