Server IP : 85.214.239.14 / Your IP : 3.142.131.51 Web Server : Apache/2.4.62 (Debian) System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.18 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /proc/3/root/proc/2/task/2/root/proc/2/root/usr/share/doc/manpages-dev/ |
Upload File : |
;;; man-addons.el - some helpful additions for browsing man pages. ;;; ;;; Copyright (c) 1998-2001 Karl M. Hegbloom <karlheg@hegbloom.net> ;;; 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)