logs archiveIRC Archive / Freenode / #emacs / 2009 / December / 16 / 1
jlf
,...
rudybot
Woof.
fsbot
[In the distance, you hear a dog bark]
jlf
,...
rudybot
Woof.
fsbot
[In the distance, you hear a dog bark]
isomer
woof, indeed
jlf
offby1: tsk tsk
qed
how do you find out the key bound to a command like kill buffer
         

subopt
jlf: thanks!
jlf
np
qed: C-h w
qed
thanks jlf
fsbot
fsbot-more ..(symbol)
jlf
np
ryoma
fsbot: ?
fsbot
Try: flame-howto quickstart TLD
jlf
(Action) knew porting fsbot to ruby was a mistake
jpablobr`
ftbot: thanks, but I dont understand how to pass the left argument...
Im doing, M-x indent-rigidly and only get an right indent... :S
im following this guide: http://www.fnal.gov/docs/products/emacs/emacs/emacs_23.html
jlf
jpablobr`: after selecting a region, try C-u 4 C-x TAB
where C-u begins a prefix argument, 4 is the argument, and C-x TAB is the binding for indent-rigidly
ian__
I'm fairly new to emacs and lisp and having trouble with a regexp...trying to write a word-wrap function. (replace-regexp-in-string "\\(.\\{1,70\\}[^ ]\\) +" (concat (match-string 1) "\n\t") my-string) results in lines of ONLY a tab and then one with a tab and the last few characters of my string. Can anyone tell me what I've done wrong? The aim is to wrap at the first space after 70...
...characters and insert a tab. I got it from Perl, which I'm more familiar with.
bob2
do you really want to write a word-wrap function?
ams
no he doesn't.
ian__: use M-q.
or ...
bob2
(or turn on auto-fill-mode)
ams
you can do it much simpler.
subopt
If i've got a single frame with a horizontally split window, is there a way to split the mini-buffer as well?
ams
(forward-char 70)
mmm...
what is the function that returns whatever is under point?
ian__
The function as it exists wraps the string that is passed to it.
ams
ian__: seriously, much simpler if you do it by movingforward 70 chars, looking if it is a space, insert newline, and then loop...
or ...
just use M-q
cause M-q does exactly what you want
entropie
M-q is teh swiss army hotkey
         

paroneayea
jvj
C-u 7 8 C-x f has been helpful for me
ian__
hmm...ok, I was trying to use a regexp because what i've got is a function that inserts a bunch of text determined by the function; not trying to wrap something i'm typing in. Will M-q or (forward-char 70) etc do that?
jvj
paroneayea: :D
sepult
night
tmitt
I have an eeepc, and I want to make my emacs font smaller. I like the current font, and want to keep it. So how do I: (1) see what the current font is (2) change the size
keramida
You can use `face-attribute' to check the currently active 'default face
(face-attribute 'default :family)
Should report the font family name, something like "Liberation Sans Mono".
The [Options -> Set default font] menu can change the default face for you.
tmitt
thanks
haesbaert
hi how can I change the action on a given file extension in dired ?
quotemstr
#emacs.
jordanb
rudybot: quote
rudybot
Let's take the worst fu*king part of a computer and make that the interface to everything.
jordanb
rudybot: quote
rudybot
Let's gamble.
haesbaert
how do you guys manage having two init files ?
I currently have one at home and one at work
twb
haesbaert: I just teach my init files to detect where they are
jordanb
Mount your home hard drive in nfs.
Home home directory.
haesbaert
twb: can you show me a piece ?
bob2
what do you need to do differently?
haesbaert
bob2: well some modules I will only have at work, some configurations are different and some minor stuff to manage cause I run linux in work and openbsd at home.
jordanb
bob2: Not use the naked lady background at work.
quotemstr
rudybot: quote
rudybot
quotemstr: Let's put antibiotic in our milk.
jordanb
They back up everything and go through all the other phones' text messages and pictures. If you have porn in your phone, they will see it. If you have text messages to your spouse, lover, or Tiger Woods, they will see them, too. Just like that. No privacy, no limits.
Who has porn on their fu*king telephone?
haesbaert
I do
twb
haesbaert: for example, if getent hosts fs.office.cybersource.com.au &>/dev/null; then umask 002; export EMAIL=twb@cybersource.com.au http_proxy=http://proxy.office.cybersource.com.au:8080/; fi
jordanb
Besides the Japanese, of course.
haesbaert
twb: I mean the .emacs part, how do you check in there where you are.
jordanb
Japanese cellphones come with a complementary collection of scatographic porn, for viewing on the train ride home.
twb
(when (zerop (call-process "getent" nil nil nil "hosts" "irc.office.cybersource.com.au")) ...)
cluck
twb: that scared me for a second there, i misread cybersource as cyberdyne :)
jordanb
Cyberdyne wasn't in australia.
I like twb's company's 2001 website, with KDE icons.
haesbaert
twb thanks
jordanb
http://cybersource.com.au/product/datasafe/index.html <-- I have one of those old IBM thinkcenters in my desk. It's doing backup, dns, and phone.
twb
Grmph, stupid default-directory
(Action) uses offby1's mark-all, E (setq default-directory ...) trick in ibuffer
jordanb
rudybot: quote
rudybot
I blame humanity
cluck
jordanb: i wouldn't be surprised if, nay, i'd expect almost every adult under 30 with a smartphone, a companion and a sex life not consisting of ma******tion to have at one point or another used the phone's camera for naughty pics
jordanb
rudybot: quote
rudybot
Let's argue over if site $foo is a blog, a homepage, or a web diary.
jordanb
That one takes me back.
sshelagh
not scat as in the jazz singing style but scat as in trackers looking for spoor. I've never come across that word before
jordanb
http://news.ycombinator.com/item?id=997640 <-- Doublethink in action
Skat is also ,,g two girls one cup
fsbot
[google] http://en.wikipedia.org/wiki/2_Girls_1_Cup
http://www.vewgle.com/showthread.php%3Fp%3D16780
jordanb
scat
I love it how there's a wikipedia article for that.
sshelagh
(Action) finds #emacs very educational
jordanb
According to Wikipedia, the proper term for 'scatographic fetish' is 'coprophilia.'
sshelagh
makes sense.
jordanb
Technically, it should be called 'being Japanese.'
Except I guess that involves several other fetishes...
In the media the video has been used as an example of the poor content quality of YouTube and similar video-sharing websites, and their tendency towards deliberately shocking content.[4][5][25]
^--- Pot, Kettle, Black.
Let's perform a random drug test.
I hate it how the gimp doesn't have emacs key bindings.
sshelagh
So what shall we test for?
jordanb
when I do C-x C-s it should save a file, not cut it.
sshelagh
I hate how some apps have some of the emacs bindings, just enough to lull you into a false sense of familiarity.
johnw
like C-f moves forward, but C-b brings up a menu of options?
sshelagh
yes
jordanb
sshelagh: crack, smack, uppers, downers, outers, inners, horse tranquilizers, cow paralyzers, blue bombers, green goofers, yellow submarines, LSD Mach 3" and trace amounts of human urine.
hjpark
haha..
sshelagh
or C-w closes the app
technomancy
(Action) remembers back to the days when he used apps that weren't emacs
subversus
my favorite is when C-e and C-a move to the beginning and end of a line, but C-n and C-p do things like, bring up the print menu, and create new files
sshelagh
subversus: they bother me too.
technomancy
ugh; when I was doing firebug work having 17 print dialogues pop up would drive me nuts
so glad I'm out of that game
subversus
fu*ked up that one of the biggest problems with emacs is when you're not using it
sshelagh
makes you want to holler and shout, and throw up both your hands
cluck
technomancy: firemacs
technomancy
yeah, that definitely helps
macrobat
how can i make speedbar show buffers at startup?
emacswiki says there's a "speedbar-change-initial-expansion-list" but i can't find it
cornucopic
Hi ! Emacs newbie here. I want to setup my .emacs so that it always displays the line numbers. '(linum-mode 1) should do?
my .emacs is pretty much vanilla
technomancy
take off the single-quote and you should be good
cornucopic
trying. /me needs to brush up my Lisp/Scheme :|
technomancy, does it need to be passed as an argument to (custom-set-variables) ?
technomancy
cornucopic: that might work, but the easiest way is to just put it at the top-level without the quote
macrobat
a vanilla .emacs? isnt that an empty one?
bob2
doesn't exist by default
cornucopic
this is what my .emacs looks like: http://paste.bradleygill.com/index.php?paste_id=26431
i don't think its correct
macrobat, I created it for something, but know why exactly :)
bob2
what's with the cond?
cornucopic
ignore that for now.
technomancy, Can you pls. take a look at my .emacs? I have removed the other lines. I just have (linum-mode 1) now
bob2
which is fine
cornucopic
doesn't work though :(
bob2
then remove everything else
cornucopic
yeah, i just have (linum-mode 1) in my .emacs
bob2
excellent
cornucopic
Its correct, right ?
it doesn;t work though
The_Entropy
annoying....
bpalmer`
sounds like it; second time it's come up in the last few days
in xemacs, it's just a matter of using own-clipboard for interprogram-cut-function (which is default)
The_Entropy
also, one last question, is there a function to save the current cursor position(the point) and then jump back to it? I really need this while coding. I somtimes need to check out a function signature elsewhere in the same file. It's really nice to be able to jump back where I was once I've done so
in gedit, for example, the cursor stays in place when you're scrolling so this is easy
bob2
read the info docs on the topic of registers
also ctrl-s helps a lot
The_Entropy
bob2, I just want to know if there's a function for that(to know if I need to roll my own) since you suggest registers I guess it's the latter
yeah, ctrl-s helps, but it's not the same
bob2
yes, support for the thing you asked about is built in
bpalmer`
The_Entropy: C-space pushes onto the mark ring
to pop, C-x C-space
The_Entropy
bpalmer`, ah, I just noticed that C-s pushes onto the mark-ring
so now when I just want to check something out(which I usually do by C-s anyway) I just need to do a C-x C-space afterwards
thanks for the help :)
off to classes now
bpalmer`
oh, true
I forgot about that case.
The_Entropy
very handy
bpalmer`
most commands that move more than a short distance push onto it.
subversus
i actually didn't know C-s did that either
but of course it makes sense that it does, thinking about it
The_Entropy
I thought it might, so I tried
yeah it does make sense
anyway, thanks guys
dnquark
heh, after i discovered it i instinctively try to do C-u C-space to go back to where i was whether or not I used C-s to move away from that place b/c it works so many times... it gets annoying when it doesn't work :P
The_Entropy
dnquark, yeah, I guess it can
C-u C-space works only on mark ring local to the current buffer while C-x C-space uses the global one, right?
bpalmer`
yes.
dnquark
i kind of wish emacs had a way of automagically keeping track of the current edit point in the text... there should be some robust heuristic -- as in, if you type type type for a while and then start using the cursor keys, the point where you stopped typing could be pushed -- not on the mark ring, but on something similar i guess
subversus
sounds possible to store something like last point of insert
The_Entropy
maybe someone should write a minor mode or something, does emacs give you the facility to access that kind of information?
bpalmer`
yes
consider how undo works.
The_Entropy
hmmm, correct
subversus
well
dnquark
actually, could the last point of insert be inferred from the undo information?
bpalmer`
yes.
well, depending how strict you are about "insert".
subversus
could actually be a lot easier than a minor mode
bpalmer`
Does yanking count as inserting?
subversus
it could for a hack like this, probably
The_Entropy
well he initially referred to last point of edit
so I guess yeah
dnquark
yeah, sure
The_Entropy
by the way, is there a way to get a straight undo/redo functionality? as in one function strictly undoes, the other stricly redoes?
bpalmer`
there's a way if you code it; or examine ,,redo
fsbot
I think redo is [0] at http://www.emacswiki.org/cgi-bin/wiki.pl?RedoMode
[1] in general, to redo a command, just move point, and do some more undos.,
[2] Repeat (C-x z) executes the most recent command),
[3] corrupts the buffer :(
bpalmer`
(it doesn't do exactly what you want, though)
The_Entropy
bpalmer`, I currently use the move and then do more undos approach
macrobat
how do i activate syntax highlighting?
« prev 1 2 3 4 5 6 next »