Skip to content

Commit

Permalink
woerterbuch-display-in-side-window is a callable function
Browse files Browse the repository at this point in the history
  • Loading branch information
hubisan committed Jul 28, 2024
1 parent ce5126a commit c0b9d7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions woerterbuch.el
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
(defcustom woerterbuch-org-buffer-display-function #'pop-to-buffer
"Function used to the display the org buffer with the definitions or synonyms.
The function takes buffer as argument.
The function `woerterbuch--display-in-side-window' may be used to show the org
The function `woerterbuch-display-in-side-window' may be used to show the org
buffer in a side window. Use with `apply-partially' to set the side."
:type 'function)

Expand Down Expand Up @@ -218,7 +218,7 @@ Returns a cons cell with the car being the word and cdr the bounds."
(insert-file-contents path)
(buffer-string)))

(defun woerterbuch--display-in-side-window (side width buffer)
(defun woerterbuch-display-in-side-window (side width buffer)
"Display BUFFER in side window on SIDE specified and select it.
Specify WIDTH and HEIGHT or set em to nil to not change it manually."
(let* ((alist (list (cons 'side side)))
Expand Down

0 comments on commit c0b9d7a

Please sign in to comment.