From mboxrd@z Thu Jan 1 00:00:00 1970 From: jorge.a.alfaro@gmail.com (Jorge A. Alfaro-Murillo) Subject: Re: Alternative to arrow keys (more ergonomic)? Date: Thu, 12 Jun 2014 11:19:52 -0400 Message-ID: <87oaxykvdz.fsf@gmail.com> References: <87y4x2kx5g.fsf@gmail.com> <8738fa6vag.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35918) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wv6nT-0000kC-Fz for emacs-orgmode@gnu.org; Thu, 12 Jun 2014 11:20:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wv6nL-0000hT-3L for emacs-orgmode@gnu.org; Thu, 12 Jun 2014 11:20:11 -0400 Received: from plane.gmane.org ([80.91.229.3]:39352) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wv6nK-0000ep-SG for emacs-orgmode@gnu.org; Thu, 12 Jun 2014 11:20:03 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Wv6nJ-0008Od-9Z for emacs-orgmode@gnu.org; Thu, 12 Jun 2014 17:20:01 +0200 Received: from nat-130-132-173-153.central.yale.edu ([130.132.173.153]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 12 Jun 2014 17:20:01 +0200 Received: from jorge.a.alfaro by nat-130-132-173-153.central.yale.edu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 12 Jun 2014 17:20:01 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Thorsten Jolitz writes: > Just out of curiosity - did you try this on the console (without X) too? Xmodmap does not work without X, at least I suppose that is what the X stands for =) If someone knows how to remap outside of X please let me know. Since I use emacs not in X in my phone, my workaround is to create a hyper key in another place (F6 is a good place for the keyboard of JuiceSSH in Android). It is not really a modifier, so to press 'H-j', you actually do 'F6 j', that is 'F6' followed by 'j', but I guess that is as good as you can get with a keyboard onscreen without installing a super tiny keyboard (e.g. Hacker's Keyboard). #+BEGIN_SRC emacs-lisp (defun hyperify (prompt) (let ((e (read-event))) (vector (if (numberp e) (logior (lsh 1 24) e) (if (memq 'hyper (event-modifiers e)) e (add-event-modifier "H-" e)))))) (defun add-event-modifier (string e) (let ((symbol (if (symbolp e) e (car e)))) (setq symbol (intern (concat string (symbol-name symbol)))) (if (symbolp e) symbol (cons symbol (cdr e))))) (define-key key-translation-map (kbd "") 'hyperify) #+END_SRC Best, Jorge.