-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
>>>>> "Santanu" == Santanu Chatterjee <[EMAIL PROTECTED]> writes:
Santanu> Hello everybody, For the past few days, I was trying to
Santanu> learn some lisp programming, and chose emacs lisp, and in
Santanu> the process found myself very much attracted to this
Santanu> wonderful editor (which I had stayed away from all this
Santanu> time).
Yeah, yeah, Emacs is wonderful, just don't let the Vi fiends hear you
say it :) No, please not another editor war!
Santanu> While using emacs, I found that I could use M-x
Santanu> ps-spool-buffer-with-faces to get a wonderful postscript
Santanu> output of the program in the buffer. But still, if I
Santanu> wanted a black and white output with the keywords in
Santanu> bold, remarks in italics, etc. without changing the
Santanu> faces, I had to use enscript. So, I would like to create
Santanu> a keyboard macro to run the following enscript command on
Santanu> the buffer contents: enscript -E lisp -i 10 --media=a4
Santanu> --output=buffer.ps --color \ --margins=25:25:30:30
I'd write a small function to do it. Write a function that selects
the buffer and then shell-command-on-region on it. The output will go
into a named buffer.
Santanu> But if understood the manuals correctly, I can only
Santanu> create a macro using current emacs commands, not shell
Santanu> commands.
Santanu> So, can anyone please help me do this under emacs. (I
Santanu> know I can always do this by opening up an eshell under
Santanu> emacs, but that takes away the fun :)
Santanu> I would also like to know what is the emacs equivalent of
Santanu> the following vim command: :r!<shell command>
Another defun: open line below, move to new line, add a space or
something, make it the region, again shell-command-on-region.
I doubt if these are the optimal solutions, but they should work.
Regards,
- -- Raju
- --
Raj Mathur [EMAIL PROTECTED] http://kandalaya.org/
GPG: 78D4 FC67 367F 40E2 0DD5 0FEF C968 D0EF CC68 D17F
It is the mind that moves
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.6 and Gnu Privacy Guard <http://www.gnupg.org/>
iD8DBQE/RRt0yWjQ78xo0X8RAgOGAJsGwxDMe5XOSprFDZIpO/5Cs9hZygCghQB1
SbSTcOAb2ptqcKtgF7rA7ZI=
=PEhI
-----END PGP SIGNATURE-----
-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help