logs archiveIRC Archive / Freenode / #emacs / 2015 / October / 1 / 1
tasslehoff
escondida: yeah, but I want to zap until the first occurence of a pattern, e.g );
wgreenhouse
the char
escondida
wgreenhouse: Oh, I can see it, but thanks
tali713
escondida: that sir is a PoP
escondida
tali713: Not "sir," but good to know.
Thanks
tali713
escondida: I meant it in the sarcastically over polite sense. not the gendered sense. will adjust pronouns.
escondida
tasslehoff: Hmm, sounds like a useful function if it were to be written
tali713: Ah
ryouma
i'd probably favor generic "he" over generic "sir" except in the military
tasslehoff
escondida: yeah. sounds like a nice exercise for someone (like me), who doesn't really know lisp
         

ryouma
where they get to decide
Shambles_
tasslehoff: zzz-to-char can kill up to, and optionally including, the 1 or 2 character pattern, forward or backwards (based on context, like the rest of Avy). It may or may not be what you're asking for. If you /really/ want a full blown pattern you might just want to set the mark then C-s or C-r then C-k. You could make a keyboard macro for that I suppose, to speed up typing everything but the pattern.
tali713
ryouma: indeed, I come from a line of laborers, "sir" has connotations.
escondida
I'm with Shakespeare and most of the history of English (going in written usage at least as far back as the late Middle Ages) on this one: "they" is an acceptable gender-neutral singular (-:
tasslehoff
Wish I had not used a comma in that sentence, but it's to late to take it back now :)
escondida
s/,//
There, done
tali713
escondida: also agreed. They and their is just fine.
escondida
\o/
tasslehoff
escondida: but The Internet never forgets :)
Shambles_: ah. which part of avy has that? I have avy, but that fxn is apparently not loaded
escondida
tasslehoff: Not so! No public logging of #emacs
tasslehoff
escondida: :)
Shambles_
tasslehoff: It's a third party package. Avy is intended to be extended, and it uses that. https://github.com/mrkkrp/zzz-to-char
tali713
I print out and shred my logs for good measure.
tasslehoff
Shambles_: ah.
mertin
why doesn't emacs like this in my init.el: (fset 'my-copy-line [?\C-a ?\C-SPC ?\C-e ?\M-w ?\C-a]) ?
it's complaining about a question mark
jlf
eww
mertin: ,,keyboardmacrostricks
fsbot
jlf, I think KeyboardMacrosTricks are [0] at http://www.emacswiki.org/emacs/KeyboardMacrosTricks
[1] see above to capture a manual operation in a keyboard macro, name it, save it in your .emacs, and bind it to a key
tali713
mertin: I don't know, I can't read vector notation, have you considered using kbd?
Shambles_
tasslehoff: If you don't already know about them, you may also want to look at ace-link and ace-window which, despite the terribly misleading name, are for Avy. They're also add-ons, but are by the Avy author.
tali713
also what jlf said.
         

mertin
mmm the idea is to convert my key combo to the actual underlying functions?
escondida
mertin: Why not use kill-whole-line?
tali713
mertin: fwiw (kbd "C-a C-SPC C-e M-w C-a") gives me the even less readable (kbd "C-a C-SPC C-e M-w C-a")
escondida: good read.
oops meant: [1 67108896 5 134217847 1]
belak
Are there any good/common replacements for isearch?
tasslehoff
Shambles_: useful
tali713
belak: depends what you are asking for. why do you want to replace isearch?
escondida
Or write a simple function? (defun my-copy-line (&optional lines) (interactive "p") (kill-whole-line (or lines 1)) (yank))
mertin: ‘
mertin
I don't use kill-whole-line because I don't want to actually get rid of the line
escondida
mertin: thus yank at the end
mertin
I see
tali713
mertin: or even better (defun mertin-kill-ring-save-line () (interactive) (kill-ring-save (line-beginning-position) (line-end-position)))
escondida
+++
yus
tali713
elisp isn't that hard if you don't over think it.
conveniently this also won't mess with your `mark-ring'.
Shambles_: speaking of quotes, one of my favorite features of erc is that it auto links symbols that are quoted that way to their docs in emacs.
mertin
cool
what does &optional lines mean?
tali713
mertin: allows you to specify the number of lines.
benaiah
ugh, web-mode's indentation just broke and I can't see anything that changed since it was working
same file, even
mertin
ah
tali713
mertin: &optional is a magic word that tells elisp and you that the following arguments are optional.
benaiah
web-mode is so nice when it works and so damn inscrutable when it doesn't
tali713
mertin: similarly &rest is for n-arity functions.
benaiah
weird, it seems to only work if the "if" and "end if" are lowercase
this was definitely working before though, so it doesn't make a whole lot of sense
Fuco
Let's write a book titled "The art of giving up"
benaiah
(Action) wonders if an update broke something
ryouma
Fuco: been dnehttps://www.youtube.com/watch?v=YtJr5ZpHe8s
Fuco: been done https://www.youtube.com/watch?v=YtJr5ZpHe8s
there is b etter video someplace
holomorph
i wish i didn't have to change everything to strings for tabulated-list-mode&
Fuco
I wanted to be first, but fu*k it...
tali713
benaiah: maybe the value of `case-fold-search'?
Fuco
instead of emacs I just need to appreciate art and pretty things
so long...
e1f
you can write the sequel and then give up half-way and print a book with mostly empty pages
make sure you give-up mid-sentence
nzst
sequel: the art of burning bridges
tali713
cross first, burn after.
aidalgol
tali713: Have you heard about the farm raids in Canada?
tali713
aidalgol: well, I have now.
aidalgol: damn, can't say I'm surprised, but I wish I were.
aidalgol
tali713: I'm not even sure what the motivation might be. Intimidating small farmers, maybe? I'm not up to speed on Canadian politics enough to have any idea.
tali713
aidalgol: oh, just business as usual, US and Canada both have the corporate oligarchy problem at this point, oil and ag. I don't know how badly intertwined it is in canada at this point, but I assume favorable regulations are standard at this point. any canucks?
Vulpes
what is a quick way to whois an ip? (not the irc /wi)
catern
Vulpes: whois
the command
Vulpes
omg.
tali713
lul
Vulpes
connection timed out, but thank you catern. I'll learn to use it.
catern
Vulpes: the command line command also
aidalgol
tali713: what's your take on the safety of raw milk?
benaiah
Fuco: ...
I just spent an hour trying to fix this because I closed my irc buffer before I saw your suggestion
tali713
aidalgol: Trust dependent. I happily drink it if I know the source and their food supply.
benaiah
but thanks, that worked great (and fixed some problems I was having with my searches becoming case-sensitive when they shouldn't have been)
wgreenhouse
the historic horror re raw milk was cows fed brewery malt etc.
benaiah
wat
Sketch
mmm, beercow
« prev 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 next »