Sponsored Content
Full Discussion: emacs as a line editor
Top Forums UNIX for Dummies Questions & Answers emacs as a line editor Post 91139 by annemar on Wednesday 30th of November 2005 02:19:56 AM
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.
 

9 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

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. 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

7. 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

8. 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

9. 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
Perl::Critic::Policy::Editor::RequireEmacsFileVariables(User Contributed Perl DocumentatPerl::Critic::Policy::Editor::RequireEmacsFileVariables(3)

NAME
Perl::Critic::Policy::Editor::RequireEmacsFileVariables - Per-file editor settings. AFFILIATION
This policy is part of Perl::Critic::More, a bleeding edge supplement to Perl::Critic. DESCRIPTION
Many text editors know how to find magic strings in files that indicate settings that work best for that file. For example, the file can indicate that it expects four-character indentation. In emacs, this magic string is called "File Variables". There are two syntaxes: "-*- ... -*-" (single-line) and "Local Variables: ... End:" (multi-line). Both syntaxes allow leading and trailing text on the line. The single-line syntax must be used on the first line of the file to be recognized, or on the second line if the first line is a shebang. The following examples are explicitly allowed by Perl: #!perl -w -*- cperl -*- #!perl -w # -*- cperl -*- #!perl # -*- cperl -*- The multi-line syntax must be used "in the last page" (that is, after the last formfeed) at the end of the file. As of Emacs21, the "end of the file" is hard-coded to be the last 3000 bytes of the file (in the hack-local-variables function in files.el). In this syntax, each line must begin and end with the same prefix/suffix pair. That pair is defined by the text before and after the "Local Variables:" string. SEE ALSO
Perl::Critic::Policy::Editor::RequireViModeline <http://www.gnu.org/software/emacs/manual/html_node/File-Variables.html> In Emacs, you can view the "File Variables" info node by typing: "Help-key", "i", "g", "(emacs)File Variables" (where "Help-key" is often "C-h" or "F1".) Alternatively, you can execute the following elisp: (info "(emacs)File Variables") AUTHOR
Chris Dolan <cdolan@cpan.org> Michael Wolf <MichaelRWolf@att.net> COPYRIGHT
Copyright (c) 2006-2008 Chris Dolan This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The full text of this license can be found in the LICENSE file included with this module. perl v5.16.3 2014-06-10 Perl::Critic::Policy::Editor::RequireEmacsFileVariables(3)
All times are GMT -4. The time now is 03:47 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy