Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sun 23 Nov 2014, 18:47
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Documents
Emacs
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [7 Posts]  
Author Message
emil

Joined: 10 Nov 2009
Posts: 618
Location: Austria

PostPosted: Fri 29 Oct 2010, 01:56    Post subject:  Emacs
Subject description: legendary text editor
 



I made a pet for the latest emacs (version 23.2) for puppy 431.
http://boxen.math.washington.edu/home/emil/stuff/
never mastered the learning curve myself, but many others swear by it .
emacs tour

build notes:
I just build it with configure, make, new2dir make install - no stripping etc.
Back to top
View user's profile Send private message Visit poster's website 
RetroTechGuy


Joined: 15 Dec 2009
Posts: 2668
Location: USA

PostPosted: Fri 29 Oct 2010, 10:16    Post subject: Re: Emacs
Subject description: legendary text editor
 

emil wrote:


I made a pet for the latest emacs (version 23.2) for puppy 431.
http://boxen.math.washington.edu/home/emil/stuff/
never mastered the learning curve myself, but many others swear by it .
emacs tour

build notes:
I just build it with configure, make, new2dir make install - no stripping etc.


BTW, I use "mg" (micro GNU Emacs) which has the "feel" of Emacs editing, with tiny size (this is a command line tool, not GUI). I just installed the .deb file from here:

http://packages.debian.org/squeeze/mg
http://http.us.debian.org/debian/pool/main/m/mg/mg_20090107-3_i386.deb

_________________
Add swapfile
Back to top
View user's profile Send private message 
emil

Joined: 10 Nov 2009
Posts: 618
Location: Austria

PostPosted: Fri 29 Oct 2010, 18:58    Post subject: mg  

Hi RetroTechGuy, thanks for the pointer.
mg seems small, more puppy size.
I compiled it from source, pet is just 58 kB.
uncompressed 128 kB

build is easy, just "make" - it creates just 1 binary: usr/bin/mg
It has to be started from the commandline though. I wont fix that atm.
Back to top
View user's profile Send private message Visit poster's website 
RetroTechGuy


Joined: 15 Dec 2009
Posts: 2668
Location: USA

PostPosted: Sat 30 Oct 2010, 10:59    Post subject: Re: mg  

emil wrote:
Hi RetroTechGuy, thanks for the pointer.
mg seems small, more puppy size.
I compiled it from source, pet is just 58 kB.
uncompressed 128 kB

build is easy, just "make" - it creates just 1 binary: usr/bin/mg
It has to be started from the commandline though. I wont fix that atm.


I just installed the .deb file, which installs to /usr/bin/ and shows up at 122116 bytes.

Also, if you create a ".mg" file in /root/ you can define key functions. Here's what my keymap looks like (I change "forward letter" to "forward word", set "F4" to user definable macro, etc):

Code:
(global-set-key "\^f" 'forward-word)
(global-set-key "\^b" 'backward-word)
(global-unset-key "\^h")                        ; Unhook ^H from help-help
(global-set-key "\^h" 'delete-backward-char)    ; ^H      (delete left)

<...snip... see attached files for more>


<edit - add file examples>

I found this man page, which shows default key bindings:

http://manpages.ubuntu.com/manpages/intrepid/man1/mg.1.html

I have bound many keys to F-keys, and other widgets.

Note: mg "knows" your term type, so you may need to change the filename to .mg-xterm (when I got it working under Puppy, I just dumped all my old .mg-??? files into /root/ -- so I have .mg, .mg-sun, .mg-vt100, .mg-xterm ...yeah, I've been using "mg" for a couple decades...).

On the command line, enter "set" and hit return. Look for "TERM=" and you'll know what your window identifies itself as.

Let me paste in the 3 most obvious .mg files (.mg, .mg-vt100, .mg-xterm) -- since I just confirmed that you do need the .mg-xterm under rxvt.

Being "dot" files, they won't be visible unless you "show all files". They adjust key bindings to various functions (and perhaps enough examples that you can do your own character map customization for each terminal type):
mgfiles.zip
Description  .mg-<term> files examples.
zip

 Download 
Filename  mgfiles.zip 
Filesize  1.93 KB 
Downloaded  413 Time(s) 

_________________
Add swapfile
Back to top
View user's profile Send private message 
calgeneva

Joined: 25 Dec 2010
Posts: 1

PostPosted: Sat 25 Dec 2010, 22:19    Post subject: re:mg
Subject description: substitute for emacs
 

Thanks for the recent posts on Emacs

another solution like mg is a text editor that is out-of-the box with puppy
By invoking e3 from the command line in a command window as follows:

e3em

you get emacs key bindings in e3

To add emacs keybindings to Firefox - try

https://addons.mozilla.org/en-US/firefox/addon/4141/
Back to top
View user's profile Send private message 
emil

Joined: 10 Nov 2009
Posts: 618
Location: Austria

PostPosted: Fri 11 Feb 2011, 03:49    Post subject: Real Programmers Use Butterflies  

Just had a good laugh, Real programmers and emacs ...
http://xkcd.com/378/
Back to top
View user's profile Send private message Visit poster's website 
GustavoYz


Joined: 07 Jul 2010
Posts: 897
Location: .ar

PostPosted: Fri 11 Feb 2011, 04:07    Post subject:  

LaughingLaughing

Thanks for the pet, downloading...
Regards.

_________________

Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [7 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Documents
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0617s ][ Queries: 13 (0.0055s) ][ GZIP on ]