[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re:Re: [PATCH] xwidget.el: call set-window-buffer after xwidget-webkit-m

From: tumashu
Subject: Re:Re: [PATCH] xwidget.el: call set-window-buffer after xwidget-webkit-mode.
Date: Tue, 9 Nov 2021 15:25:43 +0800 (CST)

At 2021-11-09 15:13:20, "Po Lu" <luangruo@yahoo.com> wrote:
>tumashu <tumashu@163.com> writes:
>> +    ;; Make sure some buffer variables in `xwidget-webkit-mode-hook'
>> +    ;; function take effect, for example: `left-fringe-width'.
>> +    (set-window-buffer (selected-window) (current-buffer))
>>      (xwidget-webkit-goto-uri (xwidget-webkit-last-session) url)))
>I don't think this is quite right: we don't change `left-fringe-width'
>or any such variable in xwidget-webkit-mode.
>Can you give a concrete reason as to why this is necessary?

I just want to the below setting work :-)

(defun eh-xwidget-webkit-mode-hook ()
  (setq-local left-fringe-width 1)
  (setq-local right-fringe-width 1)
  (setq-local header-line-format nil)
  (setq-local mode-line-format '("★★★ " mode-line-buffer-identification)))

(add-hook 'xwidget-webkit-mode-hook #'eh-xwidget-webkit-mode-hook)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]