[Top][All Lists]

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

Re: help with view-less mode

From: Charlie Sears
Subject: Re: help with view-less mode
Date: 18 Apr 2005 17:07:47 CST
User-agent: Xnews/5.04.25

Jochen Küpper <address@hidden> wrote in 

> So in order to get a "real" less that closes down completely on quit
> you do the following


That works well.  Thanks!  

I added column numbers:

:;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)
(column-number-mode 1)
(defun : ()
  (require 'view)
  (view-file (car command-line-args-left))
  (setq view-exit-action 'kill-emacs))
;;; end of eless

By renaming the function, I was able to get it to work under xemacs as 
well, using view-less instead of view since view-less.el has some extra 
keys set.

reply via email to

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