osdir.com
mailing list archive F.A.Q. -since 2001!



Subject: Re: Success installing emacs-w3m with Aquamacs? -
msg#00022

List: emacs.macintosh.osx

Mail Archive Navigation:
by Date: Prev Next Date Index by Thread: Prev Next Thread Index

I don't think you actually need to use the installer for emacs-w3m... I just
placed the .el files (downloaded from http://emacs-w3m.namazu.org) in the
directory:

/Applications/Aquamacs Emacs.app/Contents/Resources/site-lisp/w3m/
and byte-compiled them from within Aquamacs Emacs.

The .xpm images for w3m go into:

/Applications/Aquamacs Emacs.app/Contents/Resources/etc/images/w3m/

And the info files go here:

/Applications/Aquamacs Emacs.app/Contents/Resources/site-lisp/edit-modes/info/
edit the file called "dir" in that directory and your done.

To my Preferences.el I added:

;; w3m usage
(require 'w3m-load)

(setq browse-url-browser-function 'w3m-browse-url)
(setf w3m-image-viewer "open")
(global-set-key [f3] 'browse-url-at-point)
;;(setq w3m-home-page "file://localhost/Users/Swangdoodles/home.html")

(eval-after-load "dired"
'(define-key dired-mode-map [f3] 'dired-w3m-find-file))

(defun dired-w3m-find-file ()
(interactive)
(require 'w3m)
;; (let ((file (dired-get-filename)))
;; (if (y-or-n-p (format "Use emacs-w3m to browse %s? "
;; (file-name-nondirectory file)))
(let ((file (dired-get-filename)))
(if (file-name-nondirectory file)
(w3m-find-file file))))

w3m itself can be downloaded from http://w3m.sourceforge.net In addition you
need to make sure Aquamacs Emacs can find the w3m binaries and libraries. Mine
are all installed in the /usr/local directory. If installing from fink, w3m
will be in another directory...

Ciao,
Renzo

---------------------------- Info -----------------------------
List Post: <mailto:macosx-emacs@xxxxxxxxxxxxxxxxx>
List Archives: <http://dir.gmane.org/gmane.emacs.macintosh.osx>




Thread at a glance:

Previous Message by Date:

Man pages formatting problem in Aquamacs WoMan.

Hi All, I used to search man page in Emacs Woman on Linux/Windows machine. But when I tried to do the same thing on Aquamacs for mac. The man page formatting is wrong and the given message is that "WoMan can only format man pages written with the usual `-man' macros". I don't think this is Aquamacs problem but the man pages provided in Mac. However, if Woman cannot be used to correctly display man pages on Mac. Why do we need to include WoMan in Aquamacs? Is there any configuration in Aquamacs can make the correct display or any other man pages which can be correctly displayed? Thanks for your help. Wei ---------------------------- Info ----------------------------- List Post: <mailto:macosx-emacs@xxxxxxxxxxxxxxxxx> List Archives: <http://dir.gmane.org/gmane.emacs.macintosh.osx>

Next Message by Date:

Re: Man pages formatting problem in Aquamacs WoMan.

Am 05.08.2007 um 03:28 schrieb Wei Tang: Why do we need to include WoMan in Aquamacs? Because it's part of recent Emacs distributions. You're not forced to use it. f1-f2 invokes UNIX' man. -- Greetings Pete "They're putting dimes in the hole in my head to see the change in me." ---------------------------- Info ----------------------------- List Post: <mailto:macosx-emacs@xxxxxxxxxxxxxxxxx> List Archives: <http://dir.gmane.org/gmane.emacs.macintosh.osx>

Previous Message by Thread:

Re: Success installing emacs-w3m with Aquamacs?

w3m with emacs-w3m? I use w3m in Aquamacs. I installed them via Darwin ports; if you have that set up then you do: "port install emacs-w3m". My Preferences.el file says something like this: ;;---------------------------------------------------------------------- W3m (add-to-list 'load-path "/usr/share/emacs/site-lisp/w3m/") (setf w3m-image-viewer "open") (require 'w3m-load) (defun w3m-hook-for-bhyde () (setf (third (second w3m-content-type-alist)) 'browse-url-default-macosx-browser)) (add-hook 'w3m-mode-hook 'w3m-hook-for-bhyde) (setf browse-url-browser-function 'w3m-browse-url) ;; see also ~/.emacs-w3m ; (setf browse-url-browser-function 'browse-url-default-macosx-browser) I use the last line to remind me how to disable it. I did this months ago so I have no memory of why I make any of the particular choices shown above. - ben ---------------------------- Info ----------------------------- List Post: <mailto:macosx-emacs@xxxxxxxxxxxxxxxxx> List Archives: <http://dir.gmane.org/gmane.emacs.macintosh.osx>

Next Message by Thread:

Re: Re: Success installing emacs-w3m with Aquamacs?

Hullo, i decided to have some fun with this today and here's what i found (using the latest versions of everything): so would something like ./configure --prefix="/Library/Application Support/Aquamacs Emacs" make sudo make install or so do the job? nope, here's what i tried: ./configure --with-emacs="/Applications/Aquamacs Emacs.app/Contents/ MacOS/Aquamacs Emacs" \ --prefix="/Users/wladimir/Library/Application Support/Aquamacs Emacs" this gave: ...checking for /Applications/Aquamacs... /Applications/Aquamacs Emacs.app/Contents/MacOS/Aquamacs Emacs checking what a flavor does /Applications/Aquamacs Emacs.app/Contents/ MacOS/Aquamacs Emacs have... cat: ./conftest-3302: No such file or directory configure: error: is not supported. then i tried: ./configure --prefix="/Users/wladimir/Library/Application Support/ Aquamacs Emacs" this configured fine but i still had to tweak the makefiles since the directory structure of stock emacs and aquamacs is a bit different. however make fails in this case with errors of this type (even when sudo making): /Users/wladimir/gentoo/usr/bin/install: cannot create regular file `/ Applications/Aquamacs Emacs.app/Contents/Resources/site-lisp/w3m/w3m- weather.elc': No such file or directory so in the end i configured and built with defaults (using the stock emacs) and added the following to .emacs as suggested by Ben: (add-to-list 'load-path "/usr/share/emacs/site-lisp/w3m/") (require 'w3m-load) this works nicely, the info in Aquamacs even knows to look for the w3m info files in /usr. Renzo's suggestion works as well but it can be cumbersome if one is adding multiple packages or updating them. I'd reccomend keeping them in a command-line emacs (either the macosx stock or from fink or cvs, etc) and add the appropriate directories to the load-path of Aquamacs. hth, wlad ---------------------------- Info ----------------------------- List Post: <mailto:macosx-emacs@xxxxxxxxxxxxxxxxx> List Archives: <http://dir.gmane.org/gmane.emacs.macintosh.osx>
blog comments powered by Disqus

Home | News | Sitemap | FAQ | advertise | OSDir is an Inevitable website. GBiz is too!