Questions tagged [man]

13 questions
5
votes
1 answer

How do I focus the Man mode window when it is displayed?

When I open a man page (e.g. M-x man cat) I would like to automatically move my cursor onto the man page. I already know how to achieve this behavior for *Help* and *Apropos*, and I want to get the same behavior for Man mode too. I have tried…
Flux
  • 583
  • 2
  • 16
5
votes
1 answer

How to make "M-x man" buffers use all the available width of the screen?

The problem When opening man in a terminal emulator, man tries to use as much width as possible. However, when opening man inside emacs, man doesn't use all the width (even after Man-update-manpage has been executed.) In the gif shown below, I open…
doltes
  • 567
  • 2
  • 11
2
votes
0 answers

M-x man: Can't find the %s manpage caused by loading helm

I'm trying to figure out why Emacs won't display some man pages with my configuration using M-x man. It, however, does display them with emacs -Q. Not all man pages are affected. I can view the man page for ps but not the man page for ssh. I worked…
wdkrnls
  • 3,657
  • 2
  • 27
  • 46
2
votes
1 answer

WoMan italic `\,VARIABLE\/ representation

When I do M-x woman => ln , as you can see italic variables are represened as in between following pattern \, - \/. How could I revmoe or fix it? Setup: (setenv "MANWIDTH" "72") (defadvice man (before my-woman-prompt activate) (interactive…
alper
  • 1,238
  • 11
  • 30
1
vote
1 answer

Man-mode in Emacs 27 - how to display the manual page all in one page?

Using Man-mode in Emacs 27 on Arch Linux, for reading the zshall(1) manual page, the manual page appears to have been formatted to display on 16 separate pages, with each page being displayed separately. I'm seeing this behavior for the zshall(1)…
Sean Champ
  • 60
  • 5
1
vote
1 answer

vt100 codes in man-mode

Emacs in this particular installation doesn't parse hyphens in Man-mode. I found the definition and initialization of Man-filter-list, but I don't really know what to do with it, as I cannot really see well the code being displayed incorrectly. I…
wvxvw
  • 11,222
  • 2
  • 30
  • 55
1
vote
1 answer

How to exit emacs with `q` when man inside emacs is opened

Default behavior of man (opens inside less) when q is pressed it is closed. I am using following to open MANPAGER with emacs: emacsclient -nw -e "(let ((Man-notify-method 'bully)) (man \"$1\"))" Here pressing q closes buffer but does not…
alper
  • 1,238
  • 11
  • 30
1
vote
1 answer

Can I set MANPAGER to open a man page with emacs?

I am able to use man inside emacs. M-x man , , [enter]. => From the shell can I open man pages from the shell? For examlpe doing $ man ln can open the man page inside the emacs? $ export MANPAGER='emacsclient -t -q' $ man ln ❯ # opens the…
alper
  • 1,238
  • 11
  • 30
1
vote
0 answers

Finding manpages with emacs on windows

I am using Emacs 26.1 on Windows. I am reading manpages using (man). When I invoke (man) ivy jumps in and offeres me the selection of available manpages. This selection is for some reason empty (no manpages are offered). If I enter the name of a…
Matthias
  • 745
  • 3
  • 14
0
votes
1 answer

How can I get a specific numbered `man` page?

I just added the following line to my init.el: (global-set-key (kbd "M-o") 'man) but it is not enough. Before, if I wanted to perform the shell command equivalent to man 2 read I would do M-x man RET 2 read. Emacs doesn't to like the numbers and…
0
votes
1 answer

How can I set man-width for long lines in man-mode?

I am using GNU Emacs 28.2.50 along with emacsclient. I am using https://www.emacswiki.org/emacs/ManMode. When I have a smaller width size in a iTerm terminal, man-mode kind of messed up for long lines. The comparasion could be seen here: => Upper…
alper
  • 1,238
  • 11
  • 30
0
votes
0 answers

How to have `M-x man` immediately open manpages while still keeping all of its emacs-added formatting?

I don't like how M-x man takes a while to open the manpage, presumably because it is performing some formatting tasks. How can I solve this without losing the formatting? Perhaps there is some easy way of prerendering all my manpages so that they're…
habit
  • 143
  • 4
0
votes
1 answer

How to force exit man buffer preventing jumping into *Messages* buffer

I am using emacs to read man pages. macsman() { emacsclient -nw -e "(let ((Man-notify-method 'bully)) (man \"$1\"))" } alias man=macsman (define-key Man-mode-map "q" 'save-buffers-kill-emacs) While man buffer is opened, when I press q it…
alper
  • 1,238
  • 11
  • 30