Emacs::Run

Use emacs from perl via the shell
Download

Emacs::Run Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Joseph Brenner
  • Publisher web site:
  • http://search.cpan.org/~doom/

Emacs::Run Tags


Emacs::Run Description

Use emacs from perl via the shell Emacs::Run is a Perl module that allows you to use Emacs from Perl via the shell.SYNOPSIS use Emacs::Run; my $er = Emacs::Run->new(); my $major_version = $er->emacs_version; if ($major_version > 22) { print "You have a recent version of emacs "; } # use extra emacs lisp libraries, then get emacs settings my $er = Emacs::Run->new({ emacs_libs => , }); my $emacs_load_path_aref = $er->get_load_path; my $email = $er->get_variable( 'user-mail-address' ); my $name = $er->eval_function( 'user-full-name' ); # suppress the use of the usual emacs init (e.g. ~/.emacs) my $er = Emacs::Run->new({ load_emacs_init => 0, }); my $result = $er->eval_elisp( '(print (+ 2 2))' ); # that's "4" # Specify in detail how the emacs lisp libraries should be loaded $lib_data = , , , ]; my $er = Emacs::Run->new({ lib_data => $lib_data, }); my $result = $er->eval_lisp( qq{ (print (my-elisp-run-my-code "$perl_string")) } ); # Command line usage to view your emacs load_path perl -MEmacs::Run -MData::Dumper -e'my $er=Emacs::Run->new; print Dumper( $er->get_load_path ), " "'; ### TODO add example of use of redirectorEmacs::Run is a module that provides utilities to work with emacs when run from perl as an external process.The emacs "editor" has some command-line options ("--batch" and so on) that turn emacs into a lisp interpreter for the elisp dialect.This module provides methods to allow perl code to easily use these features of emacs for two types of tasks: * Probe your emacs installation to get the installed version, the user's current load-path, and so on. * Run chunks of emacs lisp code without worrying too much about the details of quoting issues and loading libraries and so on. Requirements: · Perl


Emacs::Run Related Software