Berkeley CSUA MOTD:Entry 22212
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2024/11/23 [General] UID:1000 Activity:popular
11/23   

2001/8/22-23 [Computer/SW/Languages/C_Cplusplus, Computer/SW/Editors/Emacs] UID:22212 Activity:high
8/22    How do I make emacs do an isearch using the currently selected region
        as the search string?
        \_ M-w C-s M-y
           \_ that sucks. how do i bind a key to do all those at once?
           \_ thanks...now how do i bind a key to do all those at once?
              \_ C-h i m emacs RET m keyboard macros RET
                \_ emacs doesn't leave me inside the isearch mode after
                   executing the macro though. how do i make it do dat?
                   \_ bug.  edit-last-kbd-macro, remove terminal C-x
        \_ ^A   oh wait.. that's vi again.. i'm sure there's a couple K of
           elisp you need to download to make it work in emacs, but really..
           it's better that way.
           \- it is a couple of lines of elisp. you can also use the macro to
           elisp "compiler". remind me how you do incremental search in vi
           again? --psb
           \_ what do you mean by incremental search?
           \_ nvi:  set searchincr
2024/11/23 [General] UID:1000 Activity:popular
11/23   

You may also be interested in these entries...
2008/4/15-23 [Computer/Companies/Google] UID:49755 Activity:high
4/15    Anyone got any random investment tips? I am kinda at a loss of what to do.
        Agriculture and energy are at record highs...
        \_ stockhouse.ca .. NOT - via NOSOF ... assay results coming in soon
        \_ I'm liking HRP, currently paying 12.2% dividend; there's some
           risk, but they shouldn't be as exposed to some of the macro
           issues as a lot of stocks.  Ex-div is coming up next week.
	...
2011/12/21-2012/2/6 [Computer/HW/Laptop, Computer/SW/Editors/Emacs] UID:54269 Activity:nil
12/21   In Emacs, how do I make it so that it will resize its screen
        when the maximum resolution of my monitor changes? When I
        use my laptop, my emacs is too big (and I can't resize it
        because the bottom-right corner is not accessible).
        \_ Which OS?  Can't you drag the top border (not a corner) to resize
           the height to be smaller?
	...
2007/3/7-11 [Computer/SW/Editors/Emacs] UID:45897 Activity:moderate
3/7     In emacs 21, is there a way in Emacs-Lisp to detect whether emacs was
        started with the "-r" switch?  In C mode, the syntax colors are
        different when I start emasc with and without "-r".  I want to do the
        same in my elisp code, but I can't find how this is done in cc-mode.el.
        Thanks.  -- yuen
        \- are you sure what you are talking about is being done by the cc*.el
	...
2005/5/6-9 [Computer/SW/Editors/Emacs] UID:37552 Activity:kinda low
5/6     Is there a way to pass command-line arguments to emacs, and then detect
        them in my elisp code in .emacs?  I want to distinguish, in my .emacs,
        whether it's started by me typing "emacs" at the command line, or by
        some other program using the EDITOR environment variable.  So I'm
        thinking I can change EDITOR from "emacs" to "emacs -foo" and then
        detect it in .emacs.  Thanks.
	...
2005/1/31-2/1 [Computer/SW/Editors/Vi] UID:35990 Activity:kinda low
1/31    What the fuck is wrong with you people who use emacs in "vi mode"?
        Why don't you just use vi???  I hate it when some loser asks me
        to help debug something and I see an emacs window and expect basic
        things, like C-n, to work!
        \_ Just a guess, but I assume people who utilize this probably
           want the additional features of emacs but were trained under
	...
2004/6/1-2 [Computer/SW/Editors/Emacs] UID:30524 Activity:low
6/1     Argh!  I accidently hit double-bucky-kill-XEmacs.  Is there some
        magical incantation to make it open up the 20-some-odd files I was
        editing?  (I don't need to recover lost data).
        \_ How about this? Find the last .saves-xxxxx file in your home dir,
           run "grep -v # ~/.saves-xxxxx", then somehow pass the resulting
           lines as arguments to the elisp function (find-file ......).
	...
2003/10/9-10 [Computer/SW/Languages/Java, Computer/SW/Editors/IDE] UID:10557 Activity:nil
10/9    Anyone use Emacs for Java dvlpmt?  What packages & modes do you use?
        \_ No.  Eclipse.  Eclipse.  Eclipse.  There is no other IDE.
        \_ Sure.  Java mode.  Cygwin.  I had to tweak the elisp for java mode
           to make it work according to taste, but then, I'm kind of
           particular.
        \_ IntelliJ is pretty nice as well.
	...
2003/10/9 [Computer/SW/Editors/Emacs] UID:10552 Activity:nil
10/9    in elisp, what's the difference between setq and set-variable?
        I've googled to no avail.
        \_ According to M-x describe-function, the name of the variable in setq
           is not evaluated.  So I guess you can't do something like
           "(setq (foo bar baz) 3)" but you can with set-variable.
	...
2003/9/3-4 [Computer/SW/Editors, Computer/SW/Editors/Emacs] UID:10062 Activity:nil
9/3     What editor can be controlled by another program?  What I want is to
        have my program launch, say ED, and the user edit a given file.  Only
        a subset of ED's command is avaialbe to the user.  The rest of the
        functionality is controlled by the parent program, so that ED is
        acting like an embedded editor.
        \_ rex
	...
2003/3/16-17 [Computer/SW/Editors/Emacs] UID:27713 Activity:high
3/16    Is there a way to change the background and foreground color of xemacs
        after it has started?  I know I can do "xemacs -bg black -fg white"
        but I can't seem to do it after the program started.  apropos on
        background doesn't show me anything.
        \_ I don't know, but why would you want to do this?
        \_ http://www.google.com/search?q=change+emacs+foreground+color
	...
2002/1/9 [Computer/SW/Editors/Emacs] UID:23507 Activity:insanely high
1/8     I am getting tired of Pine's editor. I like jove.
        What's YOUR favorite email program? Can it use Jove as editor?
        \_ mh.  yes.
            \_What is mh? or Where is mh?
               \_ mh is everywhere and nowhere.
        \_ nmh.  it's mh with more features and fewer bugs. nmh+procmail+jove.
	...
2001/9/16 [Computer/SW/Editors/Emacs] UID:22475 Activity:moderate
9/15    [ REPOST ] What is the equivalent of '.' (sh) in emacs/elisp?
        I want to include a elisp file into my .emacs at startup but
        I don't know how to do it. tia.
        \_ (load "file")
           \- note, if you want to load something interactively [i.e. with
           M-x] use load-file or load-library or some other wrapper. --psb
	...