Author Topic: Emacs For Zaurus  (Read 11527 times)

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Emacs For Zaurus
« Reply #15 on: April 04, 2007, 03:29:50 pm »
BTW here is a great short wikipedia introduction to G(etting) T(hings) D(one). It's no philosophy, religion or mechanical procedure. It's just an (intuitive) approach to the amorphous, ever-changing pattern in real life.

http://en.wikipedia.org/wiki/Getting_Things_Done

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Emacs For Zaurus
« Reply #16 on: April 04, 2007, 04:56:41 pm »
Alright, here are two antitheses:  

GTD: A new cult for the Info Age
http://www.wired.com/culture/lifestyle/news/2005/07/68103

Introducing the Hipster PDA  (really cool!     )
http://www.43folders.com/2004/09/03/introd...he-hipster-pda/

Off topic, sorry ...
« Last Edit: April 04, 2007, 04:57:05 pm by ZDevil »

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Emacs For Zaurus
« Reply #17 on: April 05, 2007, 07:17:10 am »
Setting deadlines for tasks

Here is yet another useful functionality: setting deadlines to tasks.

First, add this in ~/.emacs:
Code: [Select]
(require 'planner-deadline)(Re)Start Emacs Planner to let the change take effect.

Then go to your tasks. Add a deadline by M-x planner-deadline-add.
You will see a deadline tag show up at the end of the task, e.g.
Code: [Select]
#B _ Return books to the library {{Task 12}} {{Deadline: 2007.04.12 - 7 days}} (@Research)which is read off as: Priority | Status | Task description | Task id | Deadline (with remaining days | Context tag
Also Planner will tell you how many days are left.  Nice!

Of course, since you can add deadlines, you can change them. Try
M-x planner-deadline-remove
M-x planner-deadline-change
M-x planner-deadline-update


Again, you may want to assign easy keys for them if you use them a lot.
« Last Edit: April 05, 2007, 07:21:09 am by ZDevil »

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Emacs For Zaurus
« Reply #18 on: April 05, 2007, 05:38:49 pm »
Maximize your view in Emacs

Because of the small screen size, every single row and column counts in displaying text. Here is a trick to have Emacs display in the whole screen on your Z.

(Go directly to Step 2 if you are not using GTKTerm2 to launch Emacs)

Step 1: Maximize view in GTKTerm2
Run GTKTerm2 with this:
Code: [Select]
gtkterm2 -s --win-height=52(-s = "Stealth" mode; --win-height = number of rows)
Or you can edit /usr/share/applications/gtkterm2.desktop once and for all.

Then GTKTerm2 will run without any window thingies (frame, scroll bar, menu tool bar) but only a big box filling up the display.  (You should use a slightly lower window height, say 48, in Matchbox because the matchbox panel is not collapsible and may block the view of the last few rows.

If you want to reclaim the remaining few rows at the bottom, then maximize the window, in the same way as in any other application, e.g. Ctrl-Alt-M in matchbox, and set you own keys in icewm in ~/.icewm/preferences


Step 2: Get rid of UI stuff in Emacs
Add these in your .emacs file:
Code: [Select]
(if (fboundp 'scroll-bar-mode) (scroll-bar-mode -1))
(if (fboundp 'tool-bar-mode) (tool-bar-mode -1))
(if (fboundp 'menu-bar-mode) (menu-bar-mode -1))
(Got it from: htp://www.cabochon.com/~stevey/blog-rants/effective-emacs.html)


Before ...

[img]http://farm1.static.flickr.com/195/447615634_290e64bf19_o.png\" border=\"0\" class=\"linked-image\" /]

After ...

[img]http://farm1.static.flickr.com/221/447615654_88e316382b_o.png\" border=\"0\" class=\"linked-image\" /]

Now Emacs can work more efficiently on your Z!
« Last Edit: April 06, 2007, 02:41:59 am by ZDevil »

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

leskimo

  • Newbie
  • *
  • Posts: 33
    • View Profile
    • http://
Emacs For Zaurus
« Reply #19 on: April 06, 2007, 06:00:44 am »
Thanks for the planner tips! Didn't know about the deadline feature..

I got rid of the toolbar, menubar etc a couple of months ago and yes it makes the work area bigger but also looks so much nicer
SL-C1000, pdaXrom beta3
Buffalo WiFi, Corega LAN, Socket Bluetooth

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Emacs For Zaurus
« Reply #20 on: April 06, 2007, 06:38:49 am »
Actually there is much more to explore in Planner... it's a really powerful mode.
Next I'm gonna find out how to generate status report, which is very useful for task review.  

Please let me know if you come up with anything interesting.
« Last Edit: April 06, 2007, 06:41:36 am by ZDevil »

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Emacs For Zaurus
« Reply #21 on: May 13, 2007, 05:08:38 am »
Just compiled Emacs-unicode2 on OpenBSD/Zaurus.
Compilation goes faster and smoother than using zgcc on pdaX.
And the build also loads and runs much faster under OBSD!
Time to resume working with Emacs@Zaurus.
« Last Edit: May 13, 2007, 05:08:51 am by ZDevil »

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

telemetric_au

  • Sr. Member
  • ****
  • Posts: 327
    • View Profile
    • http://www.tyrannozaurus.com/feed/contribs/telemetric/index.htm
Emacs For Zaurus
« Reply #22 on: May 14, 2007, 06:22:48 am »
just a note: i yesterday compiled and ran successfully emacs 21.4ish on my 5500 with pdaxrom with too much hassle... only prob is screen way to small so ended up taking it off straight away... just had to check it out after seeing mew on my big puter

you want to see this post/thread for the only error i got for a fix:

https://www.oesf.org/forums/index.php?showtopic=3241&st=0#
https://www.oesf.org/forums/index.php?showtopic=3241&st=15#
Collie w/ pdaxrom & Puppy OS w/ cross-sdk
Hawking HCF686TX 10/100, Ambicom 802.11b (WL1100C-CF), Xircom 56K Global CF
Kingston CF Elite Pro & SD 1Gb & 128mb for flashing
$2 screen protector, collie.pdaxrom.feed : my collie pdaxrom site

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Emacs For Zaurus
« Reply #23 on: June 06, 2007, 07:13:33 am »
Does anyone know how to enable history when running bash in Emacs via M-x shell

What I mean is, when you press the up arrow in a terminal you get the previous command you keyed in.

This works in eshell in Emacs, however if you run bash in Emacs and hit the up arrow it just moves the cursor up...

Now I'd like to run bash for chrooting in emacs, because you can chroot in eshell, but then input completion doesn't work.

Any solution for this?
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

tanjian2

  • Jr. Member
  • **
  • Posts: 98
    • View Profile
Emacs For Zaurus
« Reply #24 on: June 06, 2007, 08:37:12 am »
Quote
Does anyone know how to enable history when running bash in Emacs via M-x shell

What I mean is, when you press the up arrow in a terminal you get the previous command you keyed in.

This works in eshell in Emacs, however if you run bash in Emacs and hit the up arrow it just moves the cursor up...

Now I'd like to run bash for chrooting in emacs, because you can chroot in eshell, but then input completion doesn't work.

Any solution for this?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=162691\"][{POST_SNAPBACK}][/a][/div]
Try M-p (Emacs speak for esc-p or alt-p).
SL-C3000(Spitz) - pdaXii13 5.5alpha + sound enhanced kernel - MD in 1 great big partition -  Ambicom CF Wifi + USB Ethernet  and NOW Zubuntu on a 4Gb SD

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Emacs For Zaurus
« Reply #25 on: June 06, 2007, 08:38:03 am »
either use M-p M-n
or put:
Code: [Select]
(add-hook 'shell-mode-hook
  (lambda ()
   (local-set-key '[up] 'comint-previous-input)
   (local-set-key '[down] 'comint-next-input)))
in your .emacs
SLC-860 cacko / senao wifi

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Emacs For Zaurus
« Reply #26 on: June 06, 2007, 10:27:48 am »
Thanks a lot.
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Emacs For Zaurus
« Reply #27 on: June 06, 2007, 04:16:23 pm »
One more thing, is it possible to get previous input based on what you type, I mean for instance when you type ls and then up arrow, you get choices only from prior commands starting with ls...

I found the comint-previous-matching-input, but this then asks you for regexp, thus if you give it ls, it'll come up with the history. But if you type ls in the shell buffer and then run comint-previous-matching-input it again asks you for the regexp, and doesn't take what you entered on the line as the regexp.

Is there a way to do this?
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Emacs For Zaurus
« Reply #28 on: June 07, 2007, 04:50:33 am »
I don't think there is something like that, maybe some extensions...
or use M-x ansi-term RET RET and the C-r from read-line ...
SLC-860 cacko / senao wifi

Asterix

  • Newbie
  • *
  • Posts: 17
    • View Profile
    • http://gb.asterix.com/index.html
Emacs For Zaurus
« Reply #29 on: August 10, 2007, 08:52:18 pm »
Quote
Where to download Emacs for Zaurus:
[div align=\"right\"][a href=\"index.php?act=findpost&pid=157666\"][{POST_SNAPBACK}][/a][/div]

Thanks for posting this. I've been looking all over for a non-X Emacs.

Asterix