all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Emacsw32 on Linux
@ 2009-03-24 19:40 Rasmus Pank Roulund
  2009-03-24 21:36 ` Lennart Borgman
  0 siblings, 1 reply; 8+ messages in thread
From: Rasmus Pank Roulund @ 2009-03-24 19:40 UTC (permalink / raw)
  To: help-gnu-emacs

Hello,
I am trying to move from Windows to Linux. However, I have gotten used
to all the nice features of EmacsW32. It is more than CUA-mode; It is
also Win-button as meta and the setup of tab switching etc. Is it
possible to somehow add the features of Emacsw32 to a Linux-Emacs
/easily/? BTW: I use the latest CVS Emacs on Linux.

BTW: A read an old post (2006) by David Kastrup who proposed a
"themeing" feature for Emacs. I.e. that you could make Linux-Emacs
behave like Mac-Emacs (maybe Aquamacs) or Win-Emacs or vice versa. I do
not think anything like that is possible at the moment, but I think it
is a really nice idea!

Cheers,
Rasmus





^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Emacsw32 on Linux
  2009-03-24 19:40 Rasmus Pank Roulund
@ 2009-03-24 21:36 ` Lennart Borgman
  2009-03-24 22:20   ` Rasmus Pank Roulund
  0 siblings, 1 reply; 8+ messages in thread
From: Lennart Borgman @ 2009-03-24 21:36 UTC (permalink / raw)
  To: Rasmus Pank Roulund; +Cc: help-gnu-emacs

On Tue, Mar 24, 2009 at 8:40 PM, Rasmus Pank Roulund
<rasmus.pank@gmail.com> wrote:
> Hello,
> I am trying to move from Windows to Linux. However, I have gotten used
> to all the nice features of EmacsW32. It is more than CUA-mode; It is
> also Win-button as meta and the setup of tab switching etc. Is it
> possible to somehow add the features of Emacsw32 to a Linux-Emacs
> /easily/? BTW: I use the latest CVS Emacs on Linux.

Most of it, like the buffer switching (a slightlly modified version of
ido),  is actually defined in nXhtml.

I know nothing about using the win-buttons as meta on GNU/Linux.


> BTW: A read an old post (2006) by David Kastrup who proposed a
> "themeing" feature for Emacs. I.e. that you could make Linux-Emacs
> behave like Mac-Emacs (maybe Aquamacs) or Win-Emacs or vice versa. I do
> not think anything like that is possible at the moment, but I think it
> is a really nice idea!

Yes, that would be really nice. Maybe something for Google summer of code?




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Emacsw32 on Linux
  2009-03-24 21:36 ` Lennart Borgman
@ 2009-03-24 22:20   ` Rasmus Pank Roulund
  2009-03-24 22:58     ` Peter Dyballa
  0 siblings, 1 reply; 8+ messages in thread
From: Rasmus Pank Roulund @ 2009-03-24 22:20 UTC (permalink / raw)
  To: help-gnu-emacs

Hello Lennart,

> Most of it, like the buffer switching (a slightlly modified version of
> ido), is actually defined in nXhtml.
Okay, I will look into nXhtml. At some point you kept EmacsW32-patch as
a separate download. Would it be possible to easily adapt this to use on
GNU/Linux?


> I know nothing about using the win-buttons as meta on GNU/Linux.
I believe Emacs registers the win-key as S. At least in my CVS-Emacs on
Zenwalk 6.

>> [Emacs "themes"]
> Yes, that would be really nice. Maybe something for Google summer of
> code?
If GNU was accepted it would definitely be a nice addition!

Thanks,
Rasmus





^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Emacsw32 on Linux
  2009-03-24 22:20   ` Rasmus Pank Roulund
@ 2009-03-24 22:58     ` Peter Dyballa
  0 siblings, 0 replies; 8+ messages in thread
From: Peter Dyballa @ 2009-03-24 22:58 UTC (permalink / raw)
  To: Rasmus Pank Roulund; +Cc: help-gnu-emacs


Am 24.03.2009 um 23:20 schrieb Rasmus Pank Roulund:

>> I know nothing about using the win-buttons as meta on GNU/Linux.
> I believe Emacs registers the win-key as S. At least in my CVS- 
> Emacs on
> Zenwalk 6.


Xev tells you the key code, xmodmap sets or alters the symbol/key  
modifier for use in X clients.

--
Greetings

   Pete

Increase the size of your bike by at least *five* inches!






^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Emacsw32 on Linux
       [not found] <mailman.3918.1237923641.31690.help-gnu-emacs@gnu.org>
@ 2009-03-24 23:55 ` B. T. Raven
  2009-03-25  9:11   ` Rasmus Pank Roulund
  0 siblings, 1 reply; 8+ messages in thread
From: B. T. Raven @ 2009-03-24 23:55 UTC (permalink / raw)
  To: help-gnu-emacs

Rasmus Pank Roulund wrote:
> Hello,
> I am trying to move from Windows to Linux. However, I have gotten used
> to all the nice features of EmacsW32. It is more than CUA-mode; It is
> also Win-button as meta and the setup of tab switching etc. Is it
> possible to somehow add the features of Emacsw32 to a Linux-Emacs
> /easily/? BTW: I use the latest CVS Emacs on Linux.
> 
> BTW: A read an old post (2006) by David Kastrup who proposed a
> "themeing" feature for Emacs. I.e. that you could make Linux-Emacs
> behave like Mac-Emacs (maybe Aquamacs) or Win-Emacs or vice versa. I do
> not think anything like that is possible at the moment, but I think it
> is a really nice idea!
> 
> Cheers,
> Rasmus
> 
> 
> 

Here is the Xmodmap I got to work on fedora core 8. It may go somewhere 
else in other distros. This assumes that you want the bottom row to be 
win alt ctl space ctl alt win menu and with assignments super meta ctl 
space ctl meta super hyper. If I remember right the left hyper is 
assigned to Caps Lock. This same key layout can be accomplished in MS os 
versions 2000 or higher with the KeyTweak program that remaps keyboard 
scan codes in the registry. If you have one of the older keyboard with 
swappable keycaps you can make them match the new layout if you don't 
touch type.

! /etc/X11/Xmodmap
!
! global Xmodmap file -- used by both xdm and xinit (startx)

! keycode and keysym remapping should generally be used only if the X
! server config file has been configured to disable the XKEYBOARD
! extension

   clear Shift
     clear Lock
     clear Control
     clear Mod1
     clear Mod2
     clear Mod3
     clear Mod4
     clear Mod5

     add    Shift   = Shift_L    Shift_R
     add    Control = Control_L    Control_R
     add    Mod1    = Mode_switch
     add    Mod2    = Meta_L        Meta_R
     add    Mod4    = Hyper_L    Hyper_R
     add    Mod5    = Super_L    Super_R


keycode 66 = Hyper_L
keycode 37 = Super_L
keycode 115 = Meta_L
keycode 64 = Control_L
keycode 113 = Control_R
keycode 116 = Meta_R
keycode 117 = Super_R
keycode 109 = Hyper_R

pointer = 3 2 1

Btw, the only part of CUA you really need is

  '(pc-selection-mode t nil (pc-select))

  '(delete-selection-mode t nil (delsel))

and

  '(transient-mark-mode t)

under (custom-set-variables

in .emacs Then you don't have to mess with the Emacs way. Copy is M-w, 
cut is C-w, and paste is C-y




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Emacsw32 on Linux
  2009-03-24 23:55 ` Emacsw32 on Linux B. T. Raven
@ 2009-03-25  9:11   ` Rasmus Pank Roulund
  2009-03-25 10:01     ` Peter Dyballa
       [not found]     ` <mailman.3951.1237975339.31690.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 8+ messages in thread
From: Rasmus Pank Roulund @ 2009-03-25  9:11 UTC (permalink / raw)
  To: help-gnu-emacs

"B. T. Raven" <nihil@nihilo.net> writes:

> Here is the Xmodmap I got to work on fedora core 8.
Thanks, I will use it as a last resort. I am, however, more interested
in a "local" Emacs solution. That is, meta /is/ win-key, not win-key
becomes alt-key. In Aquamacs and EmacsW32 it is possible to alter the
meta key. Surely it most be possible  on a Linux system too.

In general I am happy with my keyboard layout, however, I would like to
use abbrev-mode. Thus, alt need not be meta. 



>  '(pc-selection-mode t nil (pc-select))
>  '(delete-selection-mode t nil (delsel))
>  '(transient-mark-mode t)

Thanks for the tip. As I understand this will not yield C-c, C-x, C-v
etc. Is it not just about looks and functionality?


> Then you don't have to mess with the Emacs way. 
I don't mind the Emacs way but old habits are hard to lay off.

Again,
Thanks!

--Rasmus





^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Emacsw32 on Linux
  2009-03-25  9:11   ` Rasmus Pank Roulund
@ 2009-03-25 10:01     ` Peter Dyballa
       [not found]     ` <mailman.3951.1237975339.31690.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 8+ messages in thread
From: Peter Dyballa @ 2009-03-25 10:01 UTC (permalink / raw)
  To: Rasmus Pank Roulund; +Cc: help-gnu-emacs


Am 25.03.2009 um 10:11 schrieb Rasmus Pank Roulund:

> That is, meta /is/ win-key, not win-key
> becomes alt-key. In Aquamacs and EmacsW32 it is possible to alter the
> meta key. Surely it most be possible  on a Linux system too.

Xmodmap.

--
Greetings

   Pete

We are usually convinced more easily by reasons we have found  
ourselves than by those which have occurred to others.
				– Blaise Pascal







^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Emacsw32 on Linux
       [not found]     ` <mailman.3951.1237975339.31690.help-gnu-emacs@gnu.org>
@ 2009-03-25 14:11       ` rustom
  0 siblings, 0 replies; 8+ messages in thread
From: rustom @ 2009-03-25 14:11 UTC (permalink / raw)
  To: help-gnu-emacs

On Mar 25, 3:01 pm, Peter Dyballa <Peter_Dyba...@Web.DE> wrote:
> Am 25.03.2009 um 10:11 schrieb Rasmus Pank Roulund:
>
> > That is, meta /is/ win-key, not win-key
> > becomes alt-key. In Aquamacs and EmacsW32 it is possible to alter the
> > meta key. Surely it most be possible  on a Linux system too.
>
> Xmodmap.
>
> --
> Greetings
>
>    Pete
>
> We are usually convinced more easily by reasons we have found  
> ourselves than by those which have occurred to others.
>                                 – Blaise Pascal

If you use gnome you can use settngs -> keyboard map. The there are
lot of tweaks (hardcoded not Xmodmap) there.
(I am writing from memory -- sitting on a windows box right now)


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-03-25 14:11 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.3918.1237923641.31690.help-gnu-emacs@gnu.org>
2009-03-24 23:55 ` Emacsw32 on Linux B. T. Raven
2009-03-25  9:11   ` Rasmus Pank Roulund
2009-03-25 10:01     ` Peter Dyballa
     [not found]     ` <mailman.3951.1237975339.31690.help-gnu-emacs@gnu.org>
2009-03-25 14:11       ` rustom
2009-03-24 19:40 Rasmus Pank Roulund
2009-03-24 21:36 ` Lennart Borgman
2009-03-24 22:20   ` Rasmus Pank Roulund
2009-03-24 22:58     ` Peter Dyballa

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.