logs archiveIRC Archive / Freenode / #emacs / 2009 / December / 11 / 1
neosoothsayer
hey guys, what is the best way to work with a group of files? Like the ones in a source tree?
madpickle
to do what?
file operations; editing the source; navigating?
neosoothsayer
I need to open a file that I know the opening characters of - and then I want completions based on the set of file names that belong to the set
madpickle
M-/ ?
jlf
you want to open all of them?
madpickle
may want to kick it up a notch and hippie-expand for the completion.
neosoothsayer
No, just pick one of the file from the short list
jlf
try ido-mode
neosoothsayer
Ok, let me try them
try these options I mean
         

madpickle
if jlf's suggestion is what you are looking for, look into enabling fuzzy matching as well
jlf
,(require 'ido)
fsbot
ido
madpickle
set `ido-enable-flex-matching' to t
jlf
yep, flex-matching is great
madpickle
couldn't live without ido
shabble
(defvaralias 'ido-make-matching-really-really-slow 'ido-enable-flex-matching)
madpickle
haven't noticed any speed issues personally.
jlf
shabble: you must have too many buffers open/too many files in your directory :p
shabble
jlf: it's self-inflicted really. I'm using the code on the wiki to enable it for M-x command matching.
which can be pretty painful at times
madpickle
ouch
shabble
turns out emacs has a lot of commands :P
madpickle
i cannot stand having it enable for extended-command
neosoothsayer
is ido-mode a part of Emacs 23.1?
madpickle
yes.
22, too.
jlf
yeah that's not surprising.. but iirc 23 supports a limited version of that out of the box, e.g. f-b-b TAB expands to foo-bar-baz
madpickle
you can do f--b to have it fill in the intermedia.
which is very handy when that one thing is at the tip of your tongue.
neosoothsayer
Ah ha! that is neat!
madpickle
enable it for buffers too, neosoothsayer
shabble
I might have to fiddle with it at some point
         

jlf
(Action) nods.. but e.g. f-a-b won't match foo-bar-baz
madpickle
right
shabble
but for buffers and files, it's awesome.
only issue is when the search-recent stuff gets in the way of trying to create a new buffer/file
madpickle
and TAGS, shabble
heck, imenu too if you care to rig it to support that.
shabble
probably. I'm still a bit behind in making tags do my bidding though.
jlf
shabble: you can always disable with C-f/C-b
madpickle
oh yeah
don't forget C-d
opens dired.
=D
jlf
(Action) didn't know that one
shabble
jlf: yeah, although for some stupid reason, C-f seems to put the point at the beginning of the line.
madpickle
weird.
jlf
shabble: not here
shabble
I mostly use C-x b and then C-k to kill buffers now.
much handier than actually switching to them.
madpickle
C-x C-b ?
or actually switching to it then killing?
neosoothsayer
ido-mode is beautiful!
shabble
hmm, I figured it was a bug, but it might be my config then. I'll have a nose around
madpickle
ido's great. it supports UNC paths in Windows too.
UNC, for the Windows disinclined, are network paths.
neosoothsayer
something like \\<ip-address> ?
shabble
madpickle: no, just killing them from the display in the minibuf. I always forget the bindings for C-x C-b menu
madpickle
really? you could kill from the minibuffer?
(Action) goes to try
shabble
yeah. try it :)
madpickle
(Action) gasps
eight years...
all wrong.
:()
shabble
:D
madpickle
also: electric braces in erc -> bad.
jlf
(Action) finds UNC a rather coarse topic
madpickle
indeed.
especially since ido loves caching them in the .ido.last file
which means when I commit my emacs stuff at the end of a long days' graft i come home and find emacs fruitlessly trying to reach machines at work.
had to add it to .hgignore.
neosoothsayer
silly question, but how do you all convey 'gasps'/'finds' etc in ERC?
madpickle
that's /me
jlf
(Action) has no idea
neosoothsayer
(Action) gasps
Ah
madpickle
which is actually just the character 0x1 prepended and appended to a standard IRC PRIVMSG
the more you know.
jlf
soh that's how it's done!
madpickle
yep.
CTCP works similarly
neosoothsayer
(Action) is having fun learning new stuff everyday with emacs
madpickle
M-x zoneout
zone*
now you know about the screensaver.
jlf
zone doesn't seem to work in erc windows
madpickle
strange, because it does all of it in a new buffer (obviously)
neosoothsayer
(Action) was hypnotized by zone
madpickle
here's one that I didn't know existed for ages: `ielm'
an elisp REPL
ryoma
(Action) doesn't know what a unc path is, even though he's used unix for decades
madpickle
it's a windows thing
you're not missing out =P
it's a bit like the posix format tramp uses
Sketch
but with the wrong kind of slashes
ryoma
ic
Sketch
\\server\path\to\file ...sort of a pain to deal with in a shell where \ is normally used as an escape character
ryoma
tramp uses a posix format?
madpickle
yeah
windows'll do /-style paths almost everywhere
jlf
Sketch: so about the same number of backslashes as an elisp regexp
madpickle
neosoothsayer: so how long have you been using emacs then?
neosoothsayer
madpickle: I flirted with it a bit in 2006, but gave up then. I started about a month ago - exactly since I started hanging out here!
madpickle
cool.
neosoothsayer
madpickle: Do I dare ask you? :)
madpickle
2002-ish.
neosoothsayer
ok, I have a long way to go then :)
madpickle
which is still not that long.
in the long history of emacs.
i am but a whippersnapper.
neosoothsayer
I was mostly tired of all the C++ IDEs that I have been using so far. Good in parts, but none with the customizations that I needed
cluck
neosoothsayer: don't worry, you'll still be saying that in 20 years
neosoothsayer
cluck: LOL
cluck
THAT WAS NOT A JOKE
<seriousface.jpg>
madpickle
big bird's spot on.
cluck
neosoothsayer: jokes aside, if customization is what you want you've come to the right place
ams
madpickle: eshell
madpickle
what about it?
ams
madpickle: <3
madpickle
oh no.
an eshell fan!
johnw
yay!
madpickle
Explain yourself, sir.
ams
madpickle: cd /ftp:ftp.gnu.org:/gnu/emacs
madpickle: ls -l
madpickle
nice
cluck
we're a dilithium sphere away from turning emacs into a self-sustaining intelligent spacecraft
neosoothsayer
when I started my job, I was told to read The Pragmatic Programmer, and one of the key attributes of a programmer listed in it was 'laziness'
ams
madpickle: cp emacs-66.6.tar.gz ~/
neosoothsayer
I found myself typing the same thing over and over again, and moving between windows just to run a shell command on a file
ams
madpickle: for x in 1 2 3 4 5 6 7 { (setq foo (+ x 10))}
madpickle
ams: of course you can do that with dired and tramp
well, not that.
cluck
neosoothsayer: it still is, that's why dilbert sells
madpickle
but the other bits.
=P
neosoothsayer
Emacs has cut down all the fuss, and I am way more faster with routine typing work now. Its also pretty impressive to show off to co-worker
jlf
neosoothsayer: that's lifted from perl
ams
madpickle: not easily scriptable.
madpickle
but seriously: eshell has its advantages.
neosoothsayer
Hi johnw!
johnw
hello!
madpickle
works everywhere is a nice attribute; platform agnostic (mostly)
ams
madpickle: for one, a nicer for syntax1
!
god i started to hate sh's for x in 1 2; do something; done bullsh*t
madpickle
try doing a for loop in batch scripting on windows
ams
why would i?
shabble
shell scripts are why I learned perl :p
madpickle
ams: because your boss told you to fix the team build script
ams
shabble: uhm, right. shell is a far nicer language than perl.
madpickle
:P
jlf
o_O
neosoothsayer
,yow
fsbot
-- I can do ANYTHING ... I can even ... SHOPLIFT!!
ams
madpickle: and why would i fix it for windows?
cluck
neosoothsayer: advice: don't show off too much or you'll get twice the work (or get dumped due to envious colleagues)
shabble
ams: in what crazy world is that the case?
ams
madpickle: one, i don't use non-free software.
madpickle: two, if i have a boss telling me to use non-free software, i will tell him that i will not, and quit if i havetoo.
jlf
madpickle: ams' mother brings sandwiches down to the basement periodically, so he needn't concern himself with making a living
ams
i fail to see what is so crazy about refusing to use software that strips your freedoms away.
neosoothsayer
cluck: they keep showing off how beautiful KDevelop looks, or how fast they are with VIM
madpickle
i do windows dev for a living, so i don't have much choice in the matter =)
ams
madpickle: sure you do, you can find another job.
madpickle
i like working with trains
ams
not like you are threatened to death... i hope, if you are, i feel for you.
madpickle
interesting doain.
domain*
ams
madpickle: then port the system to a free platform.
neosoothsayer
madpickle: what languages do you use?
ams
(trains running on windows? scary)
madpickle
nah
passenger demand forecasting software
allocation of passengers and revenue to the 55,000 trains that are in operation in the UK
shabble
whenever I'm back home, at least one of the train arrival boards will be BSoD'd :(
madpickle
neosoothsayer: a lot of it's written in Delphi.
ams
shabble: i was very happily suprised when i was at the airporn in poznan, poland to see a GNU system boot up!
shabble
but that's equally likely to be the "My mate steve's car-boot" hardware sourcing than the actual software.
madpickle
shabble: in the uk?
cluck
yay, kylix is dead. long live kylix!
shabble
madpickle: yep, Edinburgh.
madpickle
cluck: an old delphi hat, i see :-)
shabble: i'll hardcode a negativ erevenue on your train service if you don't gimme a tenner.
no train will ever hail at Edinburgh again :-)
shabble
there's some bus info kiosks around which were stuck on a redhat kernel panic for a week or two.
madpickle: business as usual, then? :p
madpickle
hahaha
shabble: yer. more or less. =P
ams
to be honest, i am amazed, and stunned that they don't run something simpler...and written in forth or something.
madpickle
what, the forecasting?
or the other stuff?
shabble
I have to fly to london on sunday, because there weren't any trains running.
ams
madpickle: the arrival screens...
madpickle
the signalling is done in motorola 68k and the new stuff is C++ and some other stuff mixed in.
shabble
getting our embedded hardware demo kits through security is going to be great fun
« prev 1 2 3 4 5 6 7 8 9 next »