logs archiveIRC Archive / Freenode / #emacs / 2010 / January / 27 / 8
offby1
.oO("when he says 'cheers', does that mean I have to drink?")
jlf``
offby1: that's the #emacs drinking game.. every time you answer a question you have to take a shot
(Action) *hic*
offby1
does the answer have to be correct, or useful?
ams
no
clop
after a few answers, who can tell?
offby1
ams just answered a question! A shot of wodka for you.
clop: I can stop answering any time I want
ams
offby1: by all means.
jemarch
ams: Nacho told me that you are not assisting fosdem
ams
(Action) swipes it, and smiles.
jemarch: assisting?
attending you mean?
         

jemarch
joining
attending
yeah
ams
that would be most correct
don't have enough cash
jemarch
hm
ams
jemarch: the lodgging was hit expensive
sh*t
jemarch
well, a pity
just be sure to save some money for the GHM! :)
ams
and i got a reputation to keep
the turd people must be afraid of me.
when is ghm?
jemarch
no one knows
ams
ah, my place next week then?
got beer
jemarch
No. Palma de Mallorca + July or August seems make the hackers happy.
ams
ah,right
i'dlike augut
august
jemarch: imight go to fosdem still if i get this job...
e1f
one more hour
jemarch
what job?
ams
jemarch: gig in gothenburg
jemarch: some kind of jack of all trade hack
jemarch
oh
ams
sounds fun enough good pay too
ryan_
hello again
okay new problem
offby1
(Action) hides
ams
ryan_: please donate 100 USD to me firt.
first
offby1
no, me!
ryan_
i am working in rst mode. I've set ;; Set tabs
(setq-default tab-width 4
indent-tabs-mode nil)
         

kodein
I'll undercut you and accpt a 50 USD donation.
ams
offby1: don't be likethat.
ryan_: donate 100 USD to offby1 and me.
each.
ryan_
so everything is fine
ams
and kodein.
ryan_
but each time i do a new tab (indent, say for a rest paragraph), it uses a regular tab, 8 spaces
if I close emacs and reload the file it goes back to 4 spaces like i've set it
offby1
ryan_: tabs can be confusing. First find out what function runs when you hit the tab key
Do that by typing C-h k tab
ryan_
button.el
forward-button
offby1
hmm
ryan_
by the way I'd also like it to dedent properly instead of space by space
ams
ryan_: M-\
offby1
in my Emacs, tab is bound to indent-for-tab-mode, I don't know why yours is different
ryan_
ubuntu distro
bremner
,-Q
fsbot`
-q is if you start emacs with "emacs -q" and the problem goes away, it's YOUR FAULT; check your .emacs. If "emacs -q" has problems and "emacs -Q" does not, it's caused by your distro or local admin.
ryan_
after running emacs -q... TAB (translated from <tab>) runs the command forward-button
which is an interactive compiled Lisp function in `button.el'.
i feel like death trying to configure emacs
ams
don't then.
emacs has completely sensible defaults.
ryan_
lol well i need to that is what emacs is for
bremner
emacs is for editing text
ryan_
text editing I am doing and I feel quite strongly about TAB using spaces and and four spaces not eight
legumbre
configuring emacs is an acquired taste
ams
ryan_: well, then you are wrong.
offby1
ryan_: tab-width is probably irrelevant, even though its name suggests otherwise
tab-width only affects the _display_ of actual tab _characters_; but you (probably) don't have any tab characters in your buffer; you only have spaces.
So the question is: why does hitting the TAB key insert 8 spaces instead of 4
kensanata
,indentingtext
fsbot`
I think IndentingText is at http://www.emacswiki.org/cgi-bin/wiki.pl?IndentingText
nullie
tab-width affects that too
kensanata
Perhaps the first tab works as intended, but the next line "indents the current paragraph or region based on the first line of the paragraph" in which case...
offby1
nullie: you sure?
kensanata
Perhaps start with http://www.emacswiki.org/emacs/IndentationBasics.
offby1
much scratching of grey beards
technomancy
offby1: heyo
offby1
hoya
tiffen
technomancy
have you been doing any android hacking?
offby1
nope
(Action) ph33rs the Java :)
technomancy
yeah... I've been looking at alt languages
offby1
some day I should try out that PLT-scheme-thing
Danny Yoo has written a compiler for the "world" language
forget what it's called
technomancy
playing around with Duby, which supposedly outputs really close to the same bytecode as Java
but has type inference, closures, and less-horrible syntax
nullie
offby1, I just tried that
technomancy
should play nicer on dalvik
offby1
technomancy: http://github.com/dyoo/moby-scheme
nullie
technomancy, duby is ruby?
offby1
(Action) is dubious
technomancy
nullie: no, it's very close to Java in semantics. but the syntax is Ruby's
offby1: cool. how's perf though?
most dynamic languages have wretched boot times on dalvik even if they're reasonable on the regular JVM
ryan__
offby1, any more ideas then?
could it be something in rst mode?
offby1
technomancy: no idea; haven't tried it
ryan__: you'd have to spend some time digging, I'm afraid.
ryan__: I guarantee you it's doable; it'll just take some time
ryan__
offby1, ok then; what is the standard "tab using n spaces" command I should use...currently have (setq-default tab-width 4
indent-tabs-mode nil)
also does add-to-list 'load-path whatever-dir work recursively?
ams
no
add-to-list is oblivious of directories.
ryan__
ok cheers
last question I promise :)
does anyone here use python-mode?
and if so how do I turn on auto indent?
or smart indent or w/e#
offby1
well, I use python-mode all the time, and it indents reasonably intelligently
dunno what you mean by "auto-indent"
bremner
electric maybe?
offby1
*shrug*
when I hit TAB, it adds or removes whitespace at the beginning of the current line.
it basically tries to guess where the line ought to be.
if I keep hitting TAB, it cycles through a few guesses
kodein
Use C-j instead of enter -> it will do what you want
offby1
almost always one of those guesses is what I want
ryan__
that's what I expect and what usually happens
do you have pymacs installed too?
nilg
how to draw a vertical line at the 80th column?
offby1
ryan__: no, I don't even know what pymacs is
nilg: M-x picture-mode RET might help
isomer
ack. i need more coffee
why does this always happen??
fsbot`
mu!
offby1
yes.
yes, you do
isomer: because you keep drinking it
nilg: also look into ,,df insert-rectangle
fsbot`
insert-rectangle is a compiled Lisp function in `rect.el'.
(insert-rectangle RECTANGLE)
Insert text of RECTANGLE with upper left corner at point.
RECTANGLE's first line is inserted at point, its second
line is inserted at a point vertically under point, etc.
RECTANGLE should be a list of strings. ..[Type ,more]
nilg
thanks
ryan__
ok I think pymacs is causing the errors then
offby1
nilg: oh, I think you mean that you want emacs to _display_ that line, but not modify the contents of your buffer, right? You want a visual cue as to where column 80 is, so that you can tell if your lines are too long?
nilg
offby1: exactly
I've spent 20 minutes looking on the net but no answer yet :-(
ams
ruler-mode
offby1
nilg: I don't know any way to do that :-|
ams: ha! I never knew about that
ams
(Action) knows everything.
technomancy
whitespace-mode is what I use
jlf
There are known knowns. These are things we know that we know. There are known unknowns. That is to say, there are things that we now know we dont know. But there are also unknown unknowns. These are things we do not know we dont know.
offby1
gosh, ruler-mode is almost 10 years old
jlf: well, I don't know about that
jlf
no?
offby1
nuh uh
jlf
says you
nilg
can rule-mode display a vertical line (and hide the rule)?
nullie
google daleek
dalek
ams
nilg: if you pay me 100USD i'll answer, other wise refer to the exellent manual.
kodein
this consulting business sounds lucrative
nilg
ams, how much should I pay you so you can tell me how to get the manual (sorry I am a noob everything takes time for me)?
kodein
the manual is built in
it's the whole self-documenting thing
that startupscreen should even link you to it, if I am not mistaken
parolang
Ruler mode isn't documented in the emacs manual.
ams
nilg: 100USD
nilg: i take 100 USD for any follow up questions.
kodein: no it doesn't,some systems like debian on purpose cripple users by removing the manual.
parolang
ams: Ruler mode isn't in the emacs manual.
kodein
right, that tends to annoy me a lot of the time for a lot of thing
parolang: the source is, however, browsable.
nilg: it seems like, no, it cannot.
ams
parolang: use the source, luke.
kodein: YOU ARE STEALING MY MONEY!!!
parolang
kodein: still, it's dishonest and unfriendly to tell someone to RTFM when the information isn't in the manual.
kodein
ams: I'm sorry
parolang: I didn't say RTFM, I told him where the manual was.
parolang
kodein: ams did
ams
parolang: not really, the source is just as much part of the manual as anything, the docstrings are manuals.
kodein
nilg: http://www.emacswiki.org/emacs/ColumnMarker might do what you want, my BSL is too low to actually try it for you now.
ams
parolang: so before you start bi**hing about dishonest, look into a mirror
parolang
ams: Now you're being even more dishonest, creating a semantic omelette to make your wrong statement right.
jlf
"<ams> the source is just as much part of the manual as anything" <- that is priceless
technomancy
more like a semantic nomelette, amirite
benny
nom nom nom!
ams
parolang: troll.
18:51 /ignore parolang
parolang
ams: ass
ams
no time for trolls today.
« prev 1 2 3 4 5 6 7 8 9 10 next »