Allow setting flycheck buffer location on screen.
This commit is contained in:
parent
19bae11b3b
commit
46d15dc367
|
@ -15,6 +15,7 @@
|
|||
- [[#enable-support-for-traditional-error-navigation][Enable support for traditional error navigation]]
|
||||
- [[#bitmaps][Bitmaps]]
|
||||
- [[#auto-hide-tooltips][Auto hide tooltips]]
|
||||
- [[#window-position-and-size][Window position and size]]
|
||||
- [[#key-bindings][Key bindings]]
|
||||
|
||||
* Description
|
||||
|
@ -106,6 +107,21 @@ are kept open until the cursor is moved.
|
|||
'((syntax-checking :variables syntax-checking-auto-hide-tooltips 10)))
|
||||
#+END_SRC
|
||||
|
||||
** Window position and size
|
||||
You can set the frame position within the emacs window by setting the variable
|
||||
=syntax-checking-window-position=. Available values are ='bottom=, ='left=, ='right=,
|
||||
and ='top=. You can also set the initial size by setting =syntax-checking-window-width=
|
||||
and =syntax-checking-window-height= for width and height respectively.
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(setq-default dotspacemacs-configuration-layers
|
||||
'((syntax-checking :variables
|
||||
syntax-checking-window-position 'bottom
|
||||
syntax-checking-window-width 80
|
||||
syntax-checking-window-height 25)))
|
||||
#+END_SRC
|
||||
|
||||
|
||||
* Key bindings
|
||||
|
||||
| Key binding | Description |
|
||||
|
|
|
@ -36,7 +36,28 @@
|
|||
"If non-nil, use the original bitmaps from flycheck.")
|
||||
|
||||
(defvar syntax-checking-use-standard-error-navigation nil
|
||||
"If non-nil hook into emacs standard error navigation")
|
||||
"If non-nil hook into emacs standard error navigation.")
|
||||
|
||||
;; Command Prefixes
|
||||
(defvar syntax-checking-window-position 'bottom
|
||||
"Popup window position. Default: 'bottom.")
|
||||
|
||||
(defvar syntax-checking-window-width 80
|
||||
"Popup window width in characters.")
|
||||
|
||||
(defvar syntax-checking-window-height 25
|
||||
"Popup window height in characters.")
|
||||
|
||||
|
||||
;; internals
|
||||
|
||||
;; for syntax checking window position
|
||||
|
||||
(defvar syntax-checking-buffer-config
|
||||
`("^\\*Flycheck.+\\*$"
|
||||
:regexp t
|
||||
:dedicated t
|
||||
:position ,syntax-checking-window-position
|
||||
:width ,syntax-checking-window-width
|
||||
:height ,syntax-checking-window-height
|
||||
:stick t
|
||||
:noselect t))
|
||||
|
|
|
@ -120,10 +120,5 @@
|
|||
(defun syntax-checking/pre-init-popwin ()
|
||||
(spacemacs|use-package-add-hook popwin
|
||||
:post-config
|
||||
(push '("^\\*Flycheck.+\\*$"
|
||||
:regexp t
|
||||
:dedicated t
|
||||
:position bottom
|
||||
:stick t
|
||||
:noselect t)
|
||||
(push syntax-checking-buffer-config
|
||||
popwin:special-display-config)))
|
||||
|
|
Loading…
Reference in New Issue