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

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.
2024/11/23 [General] UID:1000 Activity:popular
11/23   

You may also be interested in these entries...
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/12/16-19 [Computer/SW/Editors/Emacs] UID:41050 Activity:low
12/16   Anyone figure out how to fix tabbing inside emacs?
        \_ Maybe if you mentioned what you perceive to be wrong with tabbing
           inside emacs, someone could offer a helpful response.
        \_ Try it now.  I changed the default file motdedit uses to edit.  It
           previously had a .c in there and that caused emacs to snort cocaine.
           \_ Thanks. It runs in Fundamental mode now. Works well.
	...
2005/9/23 [Computer/SW/Editors/Emacs] UID:39843 Activity:nil
9/21    Emacs sucks.
emacs user was here
\- you may wish to use:
(defun next-line (arg)
  "Move cursor vertically down ARG lines.
   ... If at the end of the buffer, it will add up to
	...
2005/9/21-23 [Computer/SW/Editors/Emacs, Computer/SW/Languages] UID:39784 Activity:nil
9/21    Dear motd loser who posted "Female wants to keep last name, male
        wants her to take his, marriage this summer, what do you do" guy:
        http://csua.com/?entry=17194
        Did you ever resolve the issue and how?
        \- to the guy: she gets to keep the name ... since it is hers.
           but since you are buying the ring, you get to choose between
	...
2005/9/20-21 [Computer/SW/Editors/Emacs] UID:39772 Activity:kinda low
9/20    Is there a way to tell Emacs not to append an LF at the end of a C file
        if the last line doesn't end with an LF?  Thanks.
        \- i dont undersand exactly what you mean [append when?] but emacs
           can certainly do anything in this area with the approprite hook
           (which should already exist for what youa re trying to do) calling
           an appropriate function (which you may have to write). if what
	...
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.
	...
2004/10/31-11/1 [Computer/SW/Languages/Misc] UID:34484 Activity:moderate
10/31   Dear latex experts, I'm learning latex and it's pretty cool, but
        I'm sick and tired of having to do "latex file.tex; dvipdf file.dvi;
        acroread file.pdf"  Is there a more elegant way of doing this?
        Thanks.
        \_ Uh, make? -- ilyas
        \_ question 2, what's the best program do to latex on the PC?
	...
2004/9/16 [Computer/SW/Editors/Emacs] UID:33555 Activity:high
9/15    Spaces or tabs?  I was almost converted to the tab true religion,
        and then I tried to actually set this up in emacs.  I find code with
        eight character wide tabs to be less readable.  This is totally a
        personal preference, if you like reading code with eight character
        wide tabs, more power to you.  Simple enough to fix, right, just:
        (setq tab-width 4)
	...
2004/7/15-16 [Computer/SW/Languages/C_Cplusplus, Computer/SW/Editors/Emacs] UID:32311 Activity:low
7/15    In emacs20, how do I set indent-tabs-mode to nil using ~/.emacs such
        that emacs will use spaces instead of tabs to indent in all my C files?
        I tried "(setq indent-tabs-mode nil)", but the value is still t.
        Thanks.
        --- yuen
        \_ use setq-default, or look up hooks in the emacs manual.
	...
2004/4/20 [Computer/SW/Languages/C_Cplusplus, Computer/SW/Languages/Java] UID:13283 Activity:nil
4/20    How does on change the indention level for Java Mode in emacs?
        I understand the C variable is c-basic-offset, but what's the
        Java variable?  (Hint: It's not java-basic-offset) Help?
        \_ Dude this has been posted like, the 10th time this year.
           http://csua.com/?entry=12982
           Use the force, just f****** search!!!
	...
2004/4/2-4 [Computer/SW/Editors/Emacs] UID:12982 Activity:moderate
4/2     problem with emacs. After I use it for a while (2-3 hours), the
        indentation went from 4 (default that I set and prefer) to 2.
        I have no idea why this is happening. Can someone tell me how
        to fix it? I tried M-x load-file .emacs but indentation sticks at
        2. Thanks.
        \_ this question was answered already. search the archives.
	...