K2LL33D SHELL

 Apache/2.4.7 (Ubuntu)
 Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64
 uid=33(www-data) gid=33(www-data) groups=33(www-data)
 safemode : OFF
 MySQL: ON | Perl: ON | cURL: OFF | WGet: ON
  >  / usr / share / doc / manpages /
server ip : 104.21.89.46

your ip : 172.70.130.38

H O M E


Filename/usr/share/doc/manpages/man-addons.el
Size1.76 kb
Permissionrw-r--r--
Ownerroot : root
Create time27-Apr-2025 09:55
Last modified25-Oct-2012 04:48
Last accessed27-Apr-2025 09:55
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
;;; man-addons.el - some helpful additions for browsing man pages.
;;;
;;; Copyright (c) 1998-2001 Karl M. Hegbloom <[email protected]>
;;; Released under the terms of the GPL version >= 2.0
;;;
;;; See: /usr/share/common-licences/GPL-2
;;;
;;; The usual instructions apply... Place this file in a directory on
;;; your `load-path' and then add (require 'man-addons) to your
;;; `user-init-file'.
;;;
;;; This is tested in XEmacs 21 with both the native XEmacs man.el and
;;; one I ported from GNU Emacs. I hope it works equally well for GNU
;;; Emacs users.
;;;
;;; After loading this file, when you have man page source files
;;; visible from a `dired' buffer, you can push `l' when the cursor is
;;; over them, and preview the page in man mode. I find this very
;;; helpful while editting manual pages!
;;;

;;;###autoload
(defun dired-man-locally ()
"From a dired buffer, view the man page file at point, using \"man
-l file\"."
(interactive)
(if (= 1 (function-max-args #'manual-entry))
(manual-entry (concat (dired-get-filename) " -l"))
(manual-entry (dired-get-filename) "-l")))

;;;###autoload
(add-hook 'dired-setup-keys-hook
#'(lambda ()
(define-key dired-mode-map [(?l)] #'dired-man-locally)))

(require 'thingatpt)

;;;###autoload
(defun man-locally-at-point ()
"From any buffer, view the man page file at point, using \"man -l
file\". This is useful when you use `view-file' to visit one of the
.list files in /var/lib/dpkg/info -- put the cursor over a man page
listed there, and use `M-x man-locally-at-point' to view it."
(interactive)
(let ((manpage (thing-at-point 'filename)))
(if (= 1 (function-max-args #'manual-entry))
(manual-entry (concat manpage " -l"))
(manual-entry manpage "-l"))))

(provide 'man-addons)