help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: help with view-less mode


From: Jochen Küpper
Subject: Re: help with view-less mode
Date: Mon, 18 Apr 2005 22:10:54 +0200

Joe Corneli <address@hidden> writes:

[...cool script...]

So in order to get a "real" less that closes down completely on quit
you do the following:
,----
| :;exec emacs -nw -q --no-site-file -l $0 -f : $* # -*- Emacs-Lisp -*-
| ;;; eless - make emacs be like less
| (menu-bar-mode -1)
| (setq inhibit-startup-message 1)
| (defun : ()
|   (require 'view)
|   (view-file (car command-line-args-left))
|   (setq view-exit-action 'kill-emacs))
| ;;; end of eless
`----
Or is there a "better" way?

Greetings,
Jochen
-- 
Einigkeit und Recht und Freiheit                http://www.Jochen-Kuepper.de
    Liberté, Égalité, Fraternité                GnuPG key: CC1B0B4D
        (Part 3 you find in my messages before fall 2003.)




reply via email to

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