Author Topic: New Emacs 23 W/ Xft And Cjk Support!  (Read 44551 times)

tanjian2

  • Jr. Member
  • **
  • Posts: 98
    • View Profile
New Emacs 23 W/ Xft And Cjk Support!
« Reply #45 on: March 17, 2007, 08:35:28 pm »
Quote
Quote
Quote
Just came across a nice quick reference here: http://www.helpdesk.umd.edu/documentation/unix/emacs.shtml

Now I get a nice way to kill time during travel with the Emacs tutorial. 
[div align=\"right\"][a href=\"index.php?act=findpost&pid=156624\"][{POST_SNAPBACK}][/a][/div]

C-h i should provide plenty of reading for a reasonable length of a journey.....

On my 3000 the 3rd to the right of ctrl is - and @ no sign of a baclktick any where....
[div align=\"right\"][a href=\"index.php?act=findpost&pid=156629\"][{POST_SNAPBACK}][/a][/div]

Oh yes, C-h i ... and C-h t .  No shortage of information.
It's my typo again. I should've said "the SECOND key to the right of Ctrl".  
[div align=\"right\"][a href=\"index.php?act=findpost&pid=156630\"][{POST_SNAPBACK}][/a][/div]

The second key does nothing for me... must investigate - thanks
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

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
New Emacs 23 W/ Xft And Cjk Support!
« Reply #46 on: March 17, 2007, 08:38:56 pm »
Perhaps a keymapping issue?

My /etc/X11/kb/akita.xmodmap has this:

keycode 78 = grave grave

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]

tanjian2

  • Jr. Member
  • **
  • Posts: 98
    • View Profile
New Emacs 23 W/ Xft And Cjk Support!
« Reply #47 on: March 17, 2007, 08:43:22 pm »
Quote
Perhaps a keymapping issue?

My /etc/X11/kb/akita.xmodmap has this:

keycode 78 = grave grave
[div align=\"right\"][a href=\"index.php?act=findpost&pid=156634\"][{POST_SNAPBACK}][/a][/div]
I have it on the M key so now Fn+m gives me my backtick or grave. Thanks alot.
Must put something useful on 78!
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://
New Emacs 23 W/ Xft And Cjk Support!
« Reply #48 on: March 19, 2007, 04:52:22 am »
emacs also uses the directory /usr/share/emacs/site-lisp/
for third party site-wide package installations
SLC-860 cacko / senao wifi

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
New Emacs 23 W/ Xft And Cjk Support!
« Reply #49 on: March 19, 2007, 05:01:57 am »
Quote
Ok thanks for the tips- I as actuallly curious about the drop down menu rather than the text menu page but thats fine. I don't get why there's a menu there if you can't use it....

yeah, it's pretty much useless...in a terminal, you can M-x xterm-mouse RET and click on the menu
(which opens the tmm menu...) (if your terminal supports xterm like mouse events)
SLC-860 cacko / senao wifi

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
New Emacs 23 W/ Xft And Cjk Support!
« Reply #50 on: March 22, 2007, 04:01:18 am »
Thanks again, pgas.  

Here is a newer PIM Suite package which change the symlinked path from $HOME/elisp to /usr/share/emacs/site-lisp/ , so that uninstallation by "ipkg remove" will also remove the symlinks, but no change otherwise.

Enjoy!
« Last Edit: March 22, 2007, 04:06: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]

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
New Emacs 23 W/ Xft And Cjk Support!
« Reply #51 on: March 28, 2007, 06:48:58 am »
I spot an issue with running Remember Mode in Planner. Remember fails to launch (M-x remember) due to missing setting.
You can fix  add this to your ~/.emacs
Code: [Select]
   (add-to-list 'load-path "/usr/share/emacs/23.0.0/lisp/remember")
    (require 'remember-planner)
    (setq remember-handler-functions '(remember-planner-append))
    (setq remember-annotation-functions planner-annotation-functions)

If you are newbies like me, don't ask "why?" Just do it. It works.
I got this piece (with modified load path) from the original RememberMode homepage, which seems to be missing in the PlannerMode page.

I am still learning (playing with  )  PlannerMode and Emacs and finetuning the .emacs setting specially for PIM. Will incorporate new things into the next version so as to make the suite more "ready to go".

Still preparing a new newbie tutorial. Stay tuned.
« Last Edit: March 28, 2007, 06:56:32 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]

zi99y

  • Sr. Member
  • ****
  • Posts: 282
    • View Profile
New Emacs 23 W/ Xft And Cjk Support!
« Reply #52 on: March 28, 2007, 08:02:07 am »
Nice, I've been doing some experimenting myself. Annoyances so far; the key combinations are pretty crazy on the tiny zaurus keyboard, it takes some getting used to and a bit of finger acrobatics!!! The one thing that could put me off using it is the time it takes to load- to edit a simple text file you have to wait a while to get it up - I realise you can leave it running and Ctrl-Z to switch back to the console, but it has a fair memory footprint and I count every byte

Currently I have all packages loaded onto the flash drive (/) and only the lisp package - which is large - on the internal CF drive.

Any other ways to speed up the load time?

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
New Emacs 23 W/ Xft And Cjk Support!
« Reply #53 on: March 28, 2007, 10:01:45 am »
For the keys:
According to the "PlannerModeQuickStart", we can do something like this in ~./.emacs:
Code: [Select]
(global-set-key (kbd " t") 'planner-create-task-from-buffer)
As for the speed, I don't experience much delay because I first install all the emacs packages on my SD card, then manually move the emacs binary to the interal flash, and install the PIM suite also to the internal flash.
I run emacs in the terminal (i use my optimized build of gtkterm2 because I need SCIM inputmethod ) and with swapfile on.

Any other interesting idea?  
« Last Edit: March 28, 2007, 10:02:28 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://
New Emacs 23 W/ Xft And Cjk Support!
« Reply #54 on: March 29, 2007, 12:21:13 pm »
Hey,

I find the Emacs Tutorial still a bit too chatty and so I've written this draft of a very newbie guide to Emacs specially for Zaurus users. See if it works for you. Comments are most welcome!  

The next thing is to write up a plain enough tutorial of doing PIM and GTD in Emacs.

(Actually these are just my study notes.   )
« Last Edit: March 29, 2007, 01:01:08 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]

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
New Emacs 23 W/ Xft And Cjk Support!
« Reply #55 on: March 29, 2007, 12:46:13 pm »
after  a quick browse:
#7:
M-x calendar (typo)

to Close a window:
The one you are in:
C-x 0
the others
C-x 1 (one, not L)

ESC ESC ESC is really a different thing, that might close windows.

Another thing I find usefull on the zaurus:
ESC might be used in place of M-
ie instead of M-x, you can press-release ESC then press X
« Last Edit: March 29, 2007, 12:48:06 pm by pgas »
SLC-860 cacko / senao wifi

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
New Emacs 23 W/ Xft And Cjk Support!
« Reply #56 on: March 29, 2007, 01:02:19 pm »
Thanks!  Just made the corrections. The new doc is in Post#55 above.

It's great to learn that the Cancel key functions both as ESC and M(eta) at the same time!
« Last Edit: March 29, 2007, 01:02:52 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://
New Emacs 23 W/ Xft And Cjk Support!
« Reply #57 on: March 29, 2007, 01:23:40 pm »
One more link on using Emacs Planner, with Diary function supporting hyperlinks. Cool!

http://saturna.seos.uvic.ca/~jklymak/PlannerMode.html

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]

zi99y

  • Sr. Member
  • ****
  • Posts: 282
    • View Profile
New Emacs 23 W/ Xft And Cjk Support!
« Reply #58 on: March 30, 2007, 04:08:56 am »
I recommend adding this to your config file:
Quote
    (global-set-key [?\C-x?\C-b]
                    (lambda (&optional files-only)
                      (interactive "P")
                      (let ((b (list-buffers-noselect files-only)))
                        (display-buffer
                        (pop-to-buffer )))
This will make C-x C-b work better to switch between buffers, i.e. full screen and focus automatically without having to to a C-x 0.

Info comes from here: http://www.emacswiki.org/cgi-bin/emacs-en/ListBuffers

There's tons of useful stuff on the emacswiki (http://www.emacswiki.org), but quite a bit takes you to file that will require compiling.

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
New Emacs 23 W/ Xft And Cjk Support!
« Reply #59 on: March 30, 2007, 05:27:13 am »
I am trying to map the right Shift key to Control, so that I have C and M keys on both sides, which will come very handy.
But even though I changed keycode 120 in both akita.xmodmap and userdefined.xmodmap and rebooted, the remapped right Shift key still doesn't function as Control in Emacs.
Any idea?

... Yes, emacswiki is indeed the ultimate source of information.  
« Last Edit: March 30, 2007, 05:28:44 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]