emacs as a line editor


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers emacs as a line editor
# 1  
Old 11-29-2005
emacs as a line editor

hello,
I would like to use emacs as a line editor (I use emacs as editor).
I try "set -o emacs" but I have nothing.
Thank you for any help
# 2  
Old 11-29-2005
M-x shell, and you have as close as you can get to it. A shell with an emacs window. Some things will work others not.
# 3  
Old 11-30-2005
Thank you for your answer but my question was : how can I use emacs as editor on the shell line. As, when I do "set -o vi", I can recall a command with "Escape-K" or "Escape-J" and so on.
I have read emacs can be used for that. But "set -o emacs" doesn't seem to give anything after.
# 4  
Old 11-30-2005
Make sure you set +o vi too...

e.g.

set +o vi
set -o emacs

Then, C-p and C-n to cycle through history.

man bash.....

Cheers
ZB
# 5  
Old 11-30-2005
Smilie Thank you very much. That's all I need. I can now manage with emacs as line editor.
# 6  
Old 11-30-2005
One question more : have you heard of .fkrc (I suppose it's a file in my home directory) ?
If I am right, I can define in the arrow keys as C-p, C-n, C-b and C-f.
I don't find much help in "man ksh"
Thank you if you have any idea.
Anne
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to use emacs? Also how to open existing emacs files with .cgi format?

Hi All, I am new to this forum and a beginner in unix. Please correct me if I put the question in a wrong way.. How to use emacs editor? Also how to open existing emacs files with .cgi format? I have the following link :- http link i.e. url and path : /abc/xyz.dev/xyz/documents What... (7 Replies)
Discussion started by: swathi123
7 Replies

2. UNIX for Dummies Questions & Answers

Emacs; lisp interpreter, editor and what the hell else?

I can't actually remember how I got to this point but I deducted that Emacs must be an interpreter because you have to run w3m in it which I think is written in Lisp. I did read the manual that ships with Emacs. Is that all there is to Emacs? A lisp interpreter that is also a editor? Is it... (1 Reply)
Discussion started by: theKbStockpiler
1 Replies

3. Shell Programming and Scripting

Vi Editor - How to paste the line concatenated with current line

I generally use yy to copy a line and then p to paste the line at end of current line. But is there a way to paste the copied line in concatenation with the current line with out going to next line. (3 Replies)
Discussion started by: paragkalra
3 Replies

4. UNIX for Advanced & Expert Users

vim editor -> uncounted new line

Hi, I entered the following text in a new file through vim: "Four score and seven years ago" saved and exit. When I looked at the file size, it was 31B, although is supposed to be 30. I reedited the file (again with vim) to check for errors, but everything seemed fine. When I opened the file... (3 Replies)
Discussion started by: prostiiinet
3 Replies

5. Shell Programming and Scripting

how to add text after a particular line on vi editor

hi suppose i have file 0f 10 lines. i want to add something after 8 line. may i append it anyhow without opening file. eg. i can appned at last. echo text >> file Thanks (9 Replies)
Discussion started by: manoj_dahiya22
9 Replies

6. Programming

Emacs line indentation

Hi. I'm writing a document in Python, so indentation is crucial. I want to indent a whole section by exactly one tab. Any idea how to go about this? I'm using terminal emacs (no mouse input) Thanks for any help! (2 Replies)
Discussion started by: Rledley
2 Replies

7. UNIX for Dummies Questions & Answers

init file for emacs editor

I use emacs editor. I would like to change backup strategy. I don't know how to change some variables' values in .emacs file : make-backup-files and so on. Thank you for any advices. (0 Replies)
Discussion started by: annemar
0 Replies

8. UNIX for Dummies Questions & Answers

Making Emacs to show line number

Hi all How can I make Emacs to show the line numbers at the left or right as a default. This might help me to quickly jump to a given line. Thanks SS (9 Replies)
Discussion started by: saurya_s
9 Replies

9. UNIX for Dummies Questions & Answers

Emacs Editor

hi i am using mandrake linux How do i run the emacs editor ? (5 Replies)
Discussion started by: srekcus
5 Replies
Login or Register to Ask a Question