all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* emacs on a text console - please help me overcome the shock
@ 2011-08-22  7:55 rdiezmail-emacs
  2011-08-22 17:16 ` fork
                   ` (3 more replies)
  0 siblings, 4 replies; 16+ messages in thread
From: rdiezmail-emacs @ 2011-08-22  7:55 UTC (permalink / raw)
  To: help-gnu-emacs

Hi all:

I'm a "normal" GUI computer user, I've used things like Delphi, Eclipse, gedit, Notepad++ and Visual Studio all my life. I've also been using emacs for some time under Ubuntu and under Windows.
It took me a while to set it up with "standard" behaviour, like shift+arrows for text selection and so on, I found the cua mode to be helpful. Every now and then, I even click on the menus with the mouse. However, I've written some simple, copy-paste lisp too,
so I'm not just a standard mouse user. In fact, my .emacs file has grown much more than I ever thought it would.  8-)


Now I have to work on a remote server via SSH, and the connection is not fast enough to tunnel X Windows over it, so I have to switch to console mode with "emacs -nw".

The console mode has been a shock. There is no mouse at all. I cannot navigate the menus as usual, menu-bar-open is weird and unfriendly. But, worst of all, some key combinations do not work well.

I don't want to use the ESC key as a prefix for anything, and that is normally fine under X Windows. I mean, most of the time, if I press ESC, it just makes the current panel full screen, or it aborts what I'm doing. However, in the console I have to press ESC three times. How can I make ESC react at the first press?

I also use F2 to set bookmarks, and F2 alone continues to work, but Ctrl+F2 does not. There are many other key combinations that don't work properly.

The remote server is Ubuntu 11.04, and I'm root, I can configure anything I want, including terminal types. But I just don't know enough. I've googled about it, but all instructions I found are
so dreadfully complicated. I keep thinking, surely this is a normal scenario: SSH to Ubuntu, run emacs on that console. Is there a web site with simple instructions on how to fix those
keyboard issues? Or can anybody give me easy-to-follow tips here?

Please copy me on the answers, as I'm not subscribed to this list.

Many thanks in advance,
  R. Diez




^ permalink raw reply	[flat|nested] 16+ messages in thread
* emacs on a text console - please help me overcome the shock
@ 2011-08-22 19:44 peter hodgson
  0 siblings, 0 replies; 16+ messages in thread
From: peter hodgson @ 2011-08-22 19:44 UTC (permalink / raw)
  To: rdiezmail-emacs; +Cc: help-gnu-emacs


here's part of a "mouseless" (and arrow-key-less) .emacs file whose
keymap is based on old wordstar;

instead of using mnemonic keystrokes, i start with wordstar's
geometric map;

my meta-key is Alt (on ergonomic keyboards, the left-hand space bar
can be rigged as a no-hand-displacement Alt meta-key); This frees
Ctrl for less frequent mappings, and ignores Escape altogether;
 --------------------------------

 (defun datestamp ()
  "Insert a datestamp at point." 
  (interactive "*")
  (shell-command "date +%Y%m%d | tr -d '\n'") 
  (insert-buffer "*Shell Command Output*")
  (kill-buffer "*Shell Command Output*")
  (forward-word 1))
(global-set-key "\eq" 'datestamp)

;; Changes all yes/no questions to y/n type
(fset 'yes-or-no-p 'y-or-n-p)

;; show line numbers
(autoload 'linum-mode "linum" "toggle line numbers on/off" t) 
(global-set-key (kbd "C-<f5>") 'linum-mode)

(add-hook 'python-mode-hook
  (lambda() (linum-mode 1)))

(add-hook 'python-mode-hook 
      '(lambda() 
        (setq tab-width 4)))

;; ispell must be installed 
(add-hook 'text-mode-hook 'flyspell-mode)

(global-set-key [f1] 'append-to-file)
(global-set-key [f2] 'list-buffers)
(global-set-key [f3] 'other-window)
(global-set-key [f4] 'delete-other-windows)
(global-set-key [f5] 'dired)
(global-set-key [f6] 'save-buffers-kill-emacs)

(global-set-key "\e4" 'insert-file)
(global-set-key "\e7" 'find-file)
(global-set-key "\e5" 'split-window-horizontally)
(global-set-key "\C-n" 'rename-buffer)

(global-set-key "\ed" 'forward-char)
(global-set-key "\ek" 'backward-char)
(global-set-key "\ef" 'forward-word)
(global-set-key "\ej" 'backward-word)
(global-set-key "\ei" 'previous-line)
(global-set-key "\en" 'next-line)
(global-set-key "\C-f" 'recenter)

(global-set-key "\ep" 'set-mark-command)
(global-set-key "\e0" 'exchange-point-and-mark)
(global-set-key "\e/" 'mark-whole-buffer)
(global-set-key "\e=" 'mark-paragraph)

(global-set-key "\C-d" 'kill-region)
(global-set-key "\C-w" 'append-next-kill)
(global-set-key "\C-e" 'kill-ring-save)
(global-set-key "\C-q" 'yank-pop)
(global-set-key "\C-s" 'yank)

(global-set-key "\eh" 'backward-delete-char)
(global-set-key "\eg" 'delete-char)
(global-set-key "\ev" 'kill-word)
(global-set-key "\ey" 'kill-line)

(global-set-key "\eo" 'open-line)
(global-set-key "\em" 'newline) 
(global-set-key "\e;" 'end-of-line)
(global-set-key "\eu" 'beginning-of-line)
(global-set-key "\e," 'end-of-buffer)
(global-set-key "\e." 'beginning-of-buffer)
(global-set-key "\ea" 'scroll-up)
(global-set-key "\ew" 'scroll-down)

(global-set-key "\ee" 'isearch-forward)
(global-set-key "\er" 'isearch-repeat-forward)
(global-set-key "\e'" 'isearch-exit)
(global-set-key "\e3" 'isearch-backward)
(global-set-key "\e2" 'isearch-repeat-backward)
(eval-after-load "isearch"
 '(define-key isearch-mode-map "\er" 'isearch-repeat-forward))
(global-set-key "\e6" 'query-replace)

(global-set-key "\et" 'bookmark-set)
(global-set-key "\e8" 'bookmark-jump)

(global-set-key "\eb" 'upcase-word)
(global-set-key "\ez" 'downcase-word)
(global-set-key "\ec" 'capitalize-word)

(global-set-key "\e1" 'undo)

(global-set-key "\e%" 'vc-toggle-read-only)  ;;"virtual console in buffer;

(global-set-key "\e-" 'vc-register)
(global-set-key "\e=" 'vc-next-action)
(global-set-key "\e\\" 'vc-print-log) 

(global-set-key "\C-o" 'start-kbd-macro)
(global-set-key "\C-p" 'end-kbd-macro)

(setq default-major-mode 'paragraph-indent-text-mode)
(add-hook 'mail-setup-hook 'paragraph-indent-minor-mode)
(add-hook 'html-mode-hook 'paragraph-indent-text-mode)
(global-set-key "\el" 'fill-paragraph)

(setq suggest-key-bindings t)
(setq make-backup-files t)
(setq backup-by-copying-when-linked t)

(setq version-control t) ; Make Numbered Backups of Files
(setq kept-new-versions 50) ; 3 = last three numbered backups are never deleted. 
(setq kept-old-versions 50) ; 3 = first three numbered backups are never deleted. 
(setq dired-kept-versions 100) 

(setq auto-save-interval 512) ; autosave every 512 keyboard inputs
(setq auto-save-timeout 30) ; autosave after 30 s idle

(setq Info-enable-edit t)

(menu-bar-mode nil)
;; This turns off the GUI menus in X.  You can toggle this at any point with


(set-coding-priority '(coding-category-utf-8))
(set-language-environment "UTF-8")
(setq locale-coding-system 'utf-8)
(set-selection-coding-system 'utf-8)
(prefer-coding-system 'utf-8)

(transient-mark-mode t)

 -------------------snip----------------------                 

(custom-set-variables
  ;; custom-set-variables was added by Custom -- don't edit or cut/paste it!
  ;; Your init file should contain only one such instance.
 )
(custom-set-faces
  ;; custom-set-faces was added by Custom -- don't edit or cut/paste it!
  ;; Your init file should contain only one such instance.
 )

--
imputerate@puteracy.com



^ permalink raw reply	[flat|nested] 16+ messages in thread
[parent not found: <mailman.1742.1314031478.939.help-gnu-emacs@gnu.org>]
* Bug#633652: emacs on a text console - please help me overcome the shock
  2011-08-23  0:35 ` jidanni
@ 2011-08-23  0:52 Kenyon Ralph
  2011-08-23  1:14 ` jidanni
  0 siblings, 1 reply; 16+ messages in thread
From: Kenyon Ralph @ 2011-08-23  0:52 UTC (permalink / raw)
  To: jidanni; +Cc: debian-devel, 633652, debian-emacsen, help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 1132 bytes --]

On 2011-08-23T08:35:58+0800, jidanni@jidanni.org wrote:
> >>>>> "r" == rdiezmail-emacs  <rdiezmail-emacs@yahoo.de> writes:
> r> The console mode has been a shock. There is no mouse at all. I cannot
> r> navigate the menus as usual, menu-bar-open is weird and unfriendly.
> r> But, worst of all, some key combinations do not work well.
> But that's the way it must be here on Debian, if you are root.
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=633652
> My question is how do all those high powered Debian Developers cope?
> Don't tell me they don't use emacs.
> Or not as root.
> Not even
> when
> administering their system?

I use emacs under X to administer my Debian systems. I don't run it as
root though. I use emacs TRAMP to use sudo to edit files as root on
the local machine. On remote machines I do the same but in an ssh
session in xterm (I don't use mouse or menu bars in emacs in X
anyway).

Looking at bug 633652, have you tried running X programs as root with
sux or gksu instead of su? http://packages.debian.org/squeeze/sux
http://packages.debian.org/squeeze/gksu

-- 
Kenyon Ralph

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

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

end of thread, other threads:[~2011-09-09  3:46 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-22  7:55 emacs on a text console - please help me overcome the shock rdiezmail-emacs
2011-08-22 17:16 ` fork
2011-08-22 17:28 ` Eli Zaretskii
2011-08-22 20:17   ` Drew Adams
2011-08-23  0:19     ` Daniel Schoepe
2011-08-22 17:56 ` suvayu ali
2011-08-25 14:55 ` Ehud Karni
  -- strict thread matches above, loose matches on Subject: below --
2011-08-22 19:44 peter hodgson
     [not found] <mailman.1742.1314031478.939.help-gnu-emacs@gnu.org>
2011-08-23  0:08 ` jidanni
2011-09-09  3:46   ` Ben Pfaff
2011-08-23  0:35 ` jidanni
2011-08-23  8:00   ` Toby Speight
2011-08-23 17:43     ` PJ Weisberg
2011-08-23  0:52 Bug#633652: " Kenyon Ralph
2011-08-23  1:14 ` jidanni
2011-08-23  8:17   ` Bug#633652: " Bastien ROUCARIES
2011-08-23  9:31     ` Cyril Brulebois
2011-08-23 17:24     ` jidanni

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.