Berkeley CSUA MOTD:Entry 35967
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/05/28 [General] UID:1000 Activity:popular
5/28    

2005/1/28-30 [Computer/SW/Languages/C_Cplusplus, Computer/SW/Editors/Emacs, Computer/SW/Editors/Vi] UID:35967 Activity:very high
1/28    emacs question: How can I specify a keyboard combo for saving
        the file? I find "control x  s" awkward. I would like to use
        "control x  \" instead.
        \_ put this in your .emacs:
           (global-set-key "\C-x\"" 'save-buffer)
           to get rid of C-xs for saving, you can use:
           (global-unset-key "\C-xs")
            \_ Thank you. That's awesome. I tweaked it like this:
                (global-set-key "\C-x\C-\\" 'save-buffer)
                Now it works great. Thanks!
                Now it works great just like jove. Thanks!
        \_ As someone who's switched from jove to emacs (many years ago),
           and also from random package X to random package Y, I urge you
           to learn and use the default bindings. If you don't, you can't
           ever use the package outside of your own environment; your buddy
           says, hey, here, fix this piece of code in my buffer, and you
           can't move the cursor because you defined the move-cursor commands
           to be like the Doom bindings ...    -- one who's been there
           \_ Seconded. I also recommend learning vi to the point
              where you are comfortable editing code using it b/c
              one day you will end up crunched for time and stuck
              on a box w/o emacs and the last thing you want to
              worry about is how to insert text.
              \-In the case of C-xC-s/C-xs, I think it is a good idea
                to stick to those bindings unless there is some weird
                reason not to [like C-q/C-s lossage]. In some other cases
                it may be reasonable to swtich. You know there is nothing
                that says you have to unset C-xs ... I suppose since C-x\
                is not normally bound having both isnt too bad. Re: vi ...
                you probably want to be able to use vi enough to get
                emacs running and do basic edits but that is a long way
                from being able to edit code. In fact the whole approach
                to editing code is different between emacs and vi, so if
                you see them as interchangable [do i use ESC-l, or C-f to
                move to the right], then you are likely not using emacs
                correctly/fully [e.g. M-x compile etc]. --mr. emacs
                \_ My emacs session generally has mh-rmail, gnus,
                   w3c, gdb, compiles and dozens of buffers open
                   at any given time. At one point in my life I
                   used to use emacs client/server regularly.
                   However, I still think that knowing how to switch
                   btwn emacs and vi is a valuable skill (ex i is to
                   insert, a is to append, hjkl is to move, :1 is
                   first line, G is last line, / to pattern match,
                   % is to paren match, this will be good enough
                   for 95% of all problems).
                   \- By all means go for the "95%" but that is a
                      long way from "I am comfortable working on
                      large projects in either emacs or vi and
                      merely prefer emacs."
2025/05/28 [General] UID:1000 Activity:popular
5/28    

You may also be interested in these entries...
2013/3/25-5/18 [Computer/SW/OS/Windows] UID:54639 Activity:nil
3/25    It's strange that only every other Windows version is a hit.
        NT 4.0: hit
        2000:   flop
        XP:     hit
        Vista:  flop
        7:      hit
	...
2009/8/19-9/1 [Computer/SW/Unix] UID:53285 Activity:nil
8/18    Hi again, new freebsd guy here again, in bash I was able to go
        LD_LIBRARY_PATH=/opt/foo/lib ./runmyapp
        I managed to do this in tcsh by using setenv in a shell script
        that setenv's the lib path and then executes $1, just wondering
        if there was a way to do it in 1 line from the cmd line as in bash?
        Thanks, btw %2c or %3c worked.  Freebsd, tcsh and vi forever!
	...
2009/7/24-29 [Computer/SW/Editors/Vi] UID:53195 Activity:low
7/24    Is dos2unix available somewhere?  Someone added all those Ctrl-M's to
        motd.public.
        \_ %s/^V^M//g in vim. What has your editor done for you today?
           \_ that works great in vi actually... in vim :set filetype=unix
	...
2008/12/2-7 [Computer/SW/Editors/Vi] UID:52143 Activity:nil
12/2    Article 1, Section 6
        No Senator or Representative shall, during the Time for which he was
        elected, be appointed to any civil Office under the Authority of the
        United States, which shall have been created, or the Emoluments whereof
        shall have been encreased during such time
        \_ Stop stomping my changes.
	...
2008/9/22-24 [Science/Electric, Computer/Companies/Google, Computer/SW/Editors/Vi] UID:51263 Activity:kinda low
9/22    Gmail's "conversation feature" drives me nuts! Is there a way to
        disable that and make Gmail act like every other e-mail client on the
        planet? WTF thought this was a nice thing to have on by default?
        \_ Umm, why don't you just use another email service then...
           \_ Umm, I do, which is how I have something to compare to. I get
              mail in at least 4 places only one of which is Gmail. I
	...
2008/6/12-13 [Computer/SW/Editors/Emacs, Computer/SW/Editors/Vi, Computer/SW/Unix] UID:50233 Activity:nil
6/12    Does emacs or vi include a column paste?  I sometimes have a block
        text I want to insert horizntally next to another block/column.  This
        is common for data plotting etc.  In Microsoft Word has this, I need
        it in a Unix text editor.
        \_ Does M-x picture-mode in emacs work for you?
           \_ Yes, with the commands below, thanks.
	...
2008/2/21-25 [Academia/Berkeley/CSUA/Motd, Computer/SW/Editors/Vi] UID:49207 Activity:nil
2/21    Why don't people respect the lock on the motd put on by vi or
        emacs? Are they that paranoid about kchang's motd watching program?
        Is anyone still using motdedit?
        \_ hey I still use it.  Some people don't though.  some sneaky folks
           edit a copy of the motd offline and put it in place, not caring how
           much they stomp on others' changes that might have happened in the
	...
2007/11/13-21 [Computer/Networking] UID:48628 Activity:low
11/13   If I have a application on machine foo sending data really fast to
        an application on machine bar via TCP, and the bar applications job
        is write that to disk as fast as possible, what happens if the
        network stream is faster than the disk writes?
        \_ Look up the differences between TCP/IP flow control and
           congestion control. The answer is in front of you.
	...