You are not logged in.

#1 2007-11-21 16:10:19

Jerry
Member
From: Philippines
Registered: 2007-09-14
Posts: 126

Emacs + Lisp Environment

I started this thread to fish for extra help in setting up an emacs with common lisp development and work environment but due to work and life I wasn't able to commit myself to develop something useful with common lisp. Anyhow emacs is something I enjoyed learning and using, I hope this somewhat lessen the learning curve of this tool.

day to day with emacs:

  file manager --> dired and sunrise commander

  chat --> erc

  dev --> nxhtml (for web development - php, ruby (rails), python (django), javascript, xml (rss xhtml),  and css)
        --> slime (common lisp)
        --> auctex (tex)
        --> ange ftp and tramp (ftp and ssh respectively)
        --> term and shell

  browser --> w3m (external w3m browser needed)

  mail --> gnus and bbdb

  organizer --> org

  multimedia player --> emms (with mplayer backend)

  image viewer and gallery --> tumme (imagemagick required)


a few gotchas which I find annoying at times:

  - Dired seems to hang when you launch an application while in it. It does not, it was explained to me that emacs does not do multi threading thus it waits for your job with the application to be finished before you can use it again.  This is true too when you use emacs' own way of fetching mail, right now it's better to use a separate software for this.
  - Ncurses does not work properly, so term and shell cannot fully replace your terminal.

Last edited by Jerry (2008-06-14 19:58:46)

Offline

#2 2007-11-21 16:32:04

dolby
Member
From: 1992
Registered: 2006-08-08
Posts: 1,581

Re: Emacs + Lisp Environment

mail: mutt -> emacs gnus (edit: gnus is also a news reader)
chm: xchm -> emacs ???? doubt it chm is microsift invention of compiled html.
pdf: xpdf -> emacs ???? this works in vim with xpdf. maybe there an equivalent for emacs

Last edited by dolby (2007-11-21 16:34:51)


There shouldn't be any reason to learn more editor types than emacs or vi -- mg (1)
[You learn that sarcasm does not often work well in international forums.  That is why we avoid it. -- ewaller (arch linux forum moderator)

Offline

#3 2008-01-11 21:46:47

Theomachos
Member
From: Germany
Registered: 2007-07-31
Posts: 67
Website

Re: Emacs + Lisp Environment

Maybe a bit late, but.... wink

Chat --> better use Erc

IM --> emacs-jabber or bitlbee + erc

Mail --> gnus

Browser --> emacs-w3m

Word-Documents --> no-word.el (works with antiword)

Music --> EMMS (Emacs Multimedia System)

WM --> StumpWM + slime/swank = LISP nonstop (edit: search the ArchWiki for stumpwm)

Last edited by Theomachos (2008-01-13 19:40:23)


There is one thing even more vital to science than intelligent methods; and that is, the sincere desire to find out the truth, whatever it may be.
Charles S. Peirce

Offline

#4 2008-05-27 19:23:09

Myav
Member
Registered: 2007-05-07
Posts: 58

Re: Emacs + Lisp Environment

Browser -> conkeror.

"Conkeror is a highly-programmable web browser based on Mozilla XULRunner. Inspired by Emacs, it has a sophisticated keyboard system for running commands and interacting with web page content. It interfaces with external editors and viewers. It is self-documenting and extensible with Javascript."

See http://conkeror.org for details.

PKBUILD is available at AUR.

Offline

#5 2008-05-28 21:58:58

pauldonnelly
Member
Registered: 2006-06-19
Posts: 776

Re: Emacs + Lisp Environment

There's a new Midnight Commander-style FM called Sunrise Commander that might interest.

Offline

#6 2008-06-09 08:25:36

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: Emacs + Lisp Environment

pdf: emacs' cvs-versions can show pdfs out of the box, but they are converted into PNGs pagewise.

Offline

#7 2008-06-09 19:15:42

pauldonnelly
Member
Registered: 2006-06-19
Posts: 776

Re: Emacs + Lisp Environment

Stefan Husmann wrote:

pdf: emacs' cvs-versions can show pdfs out of the box, but they are converted into PNGs pagewise.

Cool, I had no idea. Looks like it's a good viewer too. I like that pressing space to view more doesn't go on to the next page – so when you've got columns you can just keep pressing space to go on.

Offline

#8 2008-06-14 18:49:39

Jerry
Member
From: Philippines
Registered: 2007-09-14
Posts: 126

Re: Emacs + Lisp Environment

When I started this thread I was quite new to the whole emacs and lisp environment so I made the necessary changes to my setup, with emacs at the core.  Thanks to all those who posted, it helped me a lot.

@Theomachos
StumpWM is cool, if it's not for the crazy stumpwmrc that I have to build I would have switched.   I guess i'll give it a try again.

@Myav
I have been waiting for this browser for ages thanks for the note.  I suppose it won't hurt a few days more since firefox 3 will be released pretty soon. maybe we'll have xulrunner 1.9 in extra by then.

@pauldonnelly
I gave sunrise commander a try and it's beautiful, although I still use midnight commander for browsing files.  They really have got to do multi threading for emacs if dired is to replace my file manager permanently... I know patches are welcome but it's not like I'm that good to code in emacslisp or any other lisp lol.

@Stefan Husmann
the pdf viewer sounds great, I'll look at it when I have the time.


As for common lisp has anyone tried climacs under mcclim?

Last edited by Jerry (2008-06-14 20:09:44)

Offline

#9 2008-06-15 01:58:43

pauldonnelly
Member
Registered: 2006-06-19
Posts: 776

Re: Emacs + Lisp Environment

Jerry wrote:

@Theomachos
StumpWM is cool, if it's not for the crazy stumpwmrc that I have to build I would have switched.   I guess i'll give it a try again.

Like Ratpoison, the defaults are probably fine. You don't need a .stumpwmrc except to change them. For example, mine contains only:

(in-package #:stumpwm)

(asdf:oos 'asdf:load-op 'swank)
(swank:create-server :dont-close t :external-format :utf-8-unix)

(set-prefix-key (kbd "M-a"))

(push '(:class "gecko") *deny-raise-request*)

(setf *mouse-focus-policy* :sloppy)
Jerry wrote:

As for common lisp has anyone tried climacs under mcclim?

Yes. It seems to currently only be useful for editing Common Lisp code.

Offline

#10 2008-06-15 03:59:17

sacamano_m82
Member
Registered: 2007-05-29
Posts: 167

Re: Emacs + Lisp Environment

You can use openwith.el to associate file types with specific applications.
And when you view a file in dired, it opens up automatically and the main emacs thread is not locked.

http://stud4.tuwien.ac.at/~e0225855/misc/openwith.el

From my .emacs
(openwith-mode t)
(setq openwith-associations
      '(("\\.pdf\\'" "epdfview" (file))
    ("\\.chm\\'" "xchm" (file))
    ("\\.\\(?:xls\\|doc\\)\\'" "soffice" (file))))

Offline

#11 2008-06-15 07:04:19

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: Emacs + Lisp Environment

Nice! But didn't you also need a (require 'openwith) ?

Offline

#12 2008-06-15 07:07:59

sacamano_m82
Member
Registered: 2007-05-29
Posts: 167

Re: Emacs + Lisp Environment

Yep, I missed mentioning that. smile

Offline

#13 2008-06-15 07:12:36

sacamano_m82
Member
Registered: 2007-05-29
Posts: 167

Re: Emacs + Lisp Environment

And to popup a GUI notification when the IRC frame is not in focus and someone
addresses your nick, I use this:

;; Notify when someone mentions my nick.
(defun erc-global-notify (matched-type nick msg)
  (interactive)
  (when (and (eq matched-type 'current-nick)
         (not (string= (frame-parameter (selected-frame) 'name) "#archlinux")))
    (shell-command
     (concat "notify-send -t 4000 -c \"im.received\" \""
         (car (split-string nick "!"))
         " mentioned your nick\" \""
         msg
         "\""))))

(add-hook 'erc-text-matched-hook 'erc-global-notify)

Offline

#14 2008-06-15 12:16:32

burk
Member
From: Norway
Registered: 2007-06-17
Posts: 46

Re: Emacs + Lisp Environment

Just as a little fun fact for emacs lovers who use emacs for everything: the linux kernel and emacs is everything you need, forget bash and X. This guide tells you how to install emacs on only a linux kernel: http://www.informatimago.com/linux/emac … linux.html smile

Offline

Board footer

Powered by FluxBB