vedang / pdf-tools

Emacs support library for PDF files.
https://pdftools.wiki
GNU General Public License v3.0
641 stars 90 forks source link

[feature request?] change height of `pdf-annot-edit` window #221

Closed vancleve closed 1 year ago

vancleve commented 1 year ago

On my monitor, the window that opens up after clicking to view/edit an annotation is too tall for my taste.

I tried to modify by customizing this:

(defcustom pdf-annot-edit-contents-display-buffer-action
  '((display-buffer-reuse-window
     display-buffer-split-below-and-attach)
    (inhibit-same-window . t)
    (window-height . 0.25))
  "Display action when showing the edit buffer."
  :type display-buffer--action-custom-type)

from here https://github.com/vedang/pdf-tools/blob/c69e7656a4678fe25afbd29f3503dd19ee7f9896/lisp/pdf-annot.el#L1440 and changing the 0.25 for window-height to a smaller value.

However, that didn't seem to have any effect.

Any ideas how the window height might be customized?

vancleve commented 1 year ago

Solution here: https://discord.com/channels/406534637242810369/1118651940042186752/1120838724977180722