Re^3: [emacs] perldoc on windows
by BillKSmith (Monsignor) on Mar 23, 2018 at 17:24 UTC
|
| [reply] |
|
|
so, which pager do you recommend on win?
| [reply] |
|
|
I have Git installed for Windows in a C:\usr\bin\git directory. Then I added C:\usr\bin\git\usr\bin to the path (yes, that path is correct, not a copy/paste error). That directory has all sorts of Unix useful commands without the need for Cygwin - including less.exe for pager.
Another site is GnuWin32 which has *roff utils. I installed groff in C:\usr\bin\groff and with a simple batch file called 'man.bat', I can get man pages from the source.1 files - which I've put in C:\usr\share\man.
Why the hell don't I just use Linux!?!?
| [reply] |
|
|
|
|
On some windows systems, I am able to use the gvim editor as a 'pager'. I then have perl-like regexs to search the entire document. When this does not work, I settle for 'more'. Actually, I was hoping that you would mention a better option.
| [reply] |
|
|
|
|
|
Re^3: [emacs] perldoc on windows
by haj (Vicar) on Mar 24, 2018 at 10:57 UTC
|
Regarding the update: To get around the Win 'more', you can invoke 'M-x shell-command perldoc ...' to get the results in an emacs buffer. No console required, but either copypasting names or wrapping shell-command into an emacs macro are needed. | [reply] |
|
|
yeah , thanks,I know. :)
I stole some code from Emacs::PDE which does it with pod2man and woman.el , this solves most issues.
I also try to avoid the console and use eshell inside emacs instead, perldoc works there flawlessly.
A third option might be to load the raw POD code and to switch to pod-mode. (didn't try this yet)
I didn't start this thread because I don't have workarounds, but because I think that there should be a drop in replacement such that the logic and bindings in cperl-mode continue to work seamlessly.
| [reply] [d/l] [select] |
|
|
"...I didn't start this thread because I don't have workarounds..."
Yes, sure. But wouldn't it be much better to consider a two screen solution? Reading the docs in one monitor in a browser and coding in the other in our beloved emacs?
This was the way i did it for a long time. Very convenient. Just some thoughts...
Best regards, Karl
«The Crux of the Biscuit is the Apostrophe»
perl -MCrypt::CBC -E 'say Crypt::CBC->new(-key=>'kgb',-cipher=>"Blowfish")->decrypt_hex($ENV{KARL});'Help
| [reply] [d/l] |
|
|
|
|