view lisp/forms-pass.el @ 49610:ffda74ab6dc4

2003-02-05 Kai Gro?ohann <kai.grossjohann@uni-duisburg.de> Version 2.0.29 released. * tramp.texi (Installation): In Emacs, use M-x texinfo-format-buffer RET, not M-x makeinfo-buffer RET. Reported by gebser@ameritech.net. 2003-02-01 Michael Albinus <Michael.Albinus@alcatel.de> * tramp.texi (Frequently Asked Questions): Explain a workaround if another package loads accidently Ange-FTP. 2003-01-24 Michael Albinus <Michael.Albinus@alcatel.de> * tramp.texi (Customizing Completion): Add function `tramp-parse-sconfig'. Change example of `tramp-set-completion-function', because parsing of ssh config files looks more natural.
author Kai Großjohann <kgrossjo@eu.uu.net>
date Wed, 05 Feb 2003 20:10:58 +0000
parents 33d53d287ee4
children 695cf19ef79e
line wrap: on
line source

;;; forms-pass.el --- passwd file demo for forms-mode -*- no-byte-compile: t -*-

;; This file is part of GNU Emacs.

;;; Commentary:

;; This demo visits your passwd file.

;;; Code:

;; use yp if present
(or (file-exists-p (setq forms-file "/var/yp/src/passwd"))
    (setq forms-file "/etc/passwd"))

(setq forms-read-only t)		; to make sure
(setq forms-field-sep ":")
(setq forms-number-of-fields 7)

(setq forms-format-list
      (list
       "====== Visiting " forms-file " ======\n\n"
       "User : "	1
       "   Uid: "	3
       "   Gid: "	4
       "\n\n"
       "Name : "	5
       "\n\n"
       "Home : "	6
       "\n\n"
       "Shell: "	7
       "\n"))

;;; forms-pass.el ends here