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

Re: use Emacs-w3m with non-installed Emacs



Hi There.

┬┐What I do on those cases?.

Having to support emacs-23 and emacs-26 on the same device is
installing it with M-x list-packages with emacs-23. Then emacs-26 works
fine.

if compiling with a later version of emacsen then the previous version
fails. So Best shot is compiling with the older emacsen.

If You plan to use the separate debian package emacs-w3m (which probably
have been debianized).

You would need something like this on emacs-26 YMMV
--8<---------------cut here---------------start------------->8---
(defun s-load-now/w3m ()
  "load w3m mode from myemacs ."
  (interactive)
     ; your path should be according to your emacs-w3m package
     (when (file-exists-p "~/.emacs.d/elpa/w3m")
       (add-to-list 'load-path "~/.emacs.d/elpa/w3m")
      ; below is my personal w3m setup
       (load-file "~/.emacs.d/personal/configs/external/.emacs-rc-w3m.el"))
     )
--8<---------------cut here---------------end--------------->8---

You could run above automatically if version major than 24
--8<---------------cut here---------------start------------->8---
(when (> 24 emacs-major-version)
 (s-load-now/w3m)
)
--8<---------------cut here---------------end--------------->8---

AR