logs archiveIRC Archive / Freenode / #emacs / 2009 / December / 13 / 1
retroj
(Action) moves away from karlw on the bench there
karlw
(sarcasm "Yeah, it's *really* fun to read the ELisp manual for 4 hours a day.")
Surgo
retroj: the entire remap? I just want to override it in one instance though; I want every other instance to use the remap
retroj
Surgo: oh... you could define a command which calls the other command
Surgo: maybe even an alias, but i don't know whether aliases get remapped
Surgo
the first thing is what I did, and it seemed to work...but it also seemed kind of, I don't know, ugly? hackish? It seems like there must be a way to say "do not remap"
retroj
Surgo: hm... no, i think the point of remapping a command is pretty much to.... remap it :)
karlw
I'm told that the C code for Emacs is a total mess.
Surgo
oh well, it works even if it isn't as pretty as I want. (defun next-line-noremap() (interactive) (next-line))
thanks for the info
retroj
it could be that the remapping in question was injudiciuos
         

nimred
kodein wich way do you index your mails ?
kodein
procmail
nimred
to search for keyword ?
kodein
probably I go use webmail app for that the few times I need to, but maybe wanderlust supports that somehow.
nimred
kodein i use gnus
kodein
nimred: so I gathered from your earlier question.
nimred
kodein that's why i was asking for somebody using nnmairix...
kodein
yes, exactly.
karlw
I used to use gnus and M-x mail...
nimred
karlw M-x mail what ?
junis
i'm running gnu emacs on gnome... how can i copy something from emacs to the gnome clipboard
retroj
junis: (setq x-select-enable-clipboard t)
kodein
,df clipboard-kill-ring-save
fsbot
clipboard-kill-ring-save is an interactive compiled Lisp function in
`menu-bar.el'.
(clipboard-kill-ring-save BEG END)
Copy region to kill ring, and save in the X clipboard.
kodein
that does it.
junis
thank you kodein
konr
Is the FSF elisp book good? http://shop.fsf.org/product/Intro_to_Emacs_Lisp_3rd_Ed/
madpickle
it's free now isn't it?
boscop
I tried to "make capslock an additional ctrl key" in the gnome-keyboard-properties -> layout -> config layout dialog
but it didn't work on reboot
offby1
konr: (info "(eintr) Top")
I think that's the same book
         

madpickle
http://www.gnu.org/software/emacs/emacs-lisp-intro/
" Edition 3.08, 4 October 2008"
that's it.
it's a good book, btw. pedagogical.
cluck
boscop: i tried that once and it failed too after a while for some reason, i ended up returning to xmodmap
boscop
cluck: how?
cluck
remove Lock = Caps_Lock
keysym Caps_Lock = Control_L
add Lock = Caps_Lock
add Control = Control_L
that should do it, stuff it on ~/.xmodmap and update the running config
for more info man xmodmap ;)
kodein
setxkbmap -option ctrl:nocaps is even less work.
that you can even put in your godawful hald conf.
boscop
kodein: that's what I wanted to have executed on startup, but it didn't do it apparently
I had it in .config/xfce/xinitrc
kodein
yeah, it didn't ever do for me either.
cluck
madpickle: it's a nice book and it's free in several senses but i'd rather have a "and now that you've read sicp and liked it here are the things you should know about elisp"
boscop
kodein: where should I create that hald.conf?
cluck
kodein: yeah, but only in the short term
madpickle
i can help you with that:
elisp ain't scheme (tm)
soopos_
Which code does start Emacs at viper-mode in emacs.el?
madpickle
=)
kodein
boscop: add a <merge key="input.x11_options.XkbOptions" type="string">ctrl:nocaps</merge> in /etc/hal/fdi/policy/10-keymap.fdi, which, if you don't have, can copy from /usr/share/hal/fdi/policy/10osvendor/10-keymap.fdi
madpickle
,,viper
fsbot
I heard ViPer is [0] Viper is a vi-emulation in Emacs
[1] at http://www.emacswiki.org/cgi-bin/wiki.pl?ViKeys,
[2] Viper Manual has a good intro to emacs from a vi standpoint,
[3] at http://www.emacswiki.org/cgi-bin/wiki.pl?Viper,
[4] see http://paste.lisp.org/display/20528 for a vimmish viper
kodein
boscop: as for where in it, it should be pretty obvious where the other similar tags are...
Han
mud on a flag-ship
boscop
kodein: I have neither of them, only /etc/hal/fdi/policy/preferences.fdi
is it that?
kodein
tbh not sure, not unlikely that this differs between distributions
you could always open that file and see what it contains, I guess, and if there's something keyboard related it could be worth trying adding that line at an appropriate place
jpablobr
Hi, I'm an emacs newbie, and I'm having problems setting up git-emacs...
Baughn
Is it possible to fontify "" as "  "? Er, with  being in the middle of a /two/-character wide box there?
jpablobr
Im following this tutorial http://files.taesoo.org/git-emacs/git-emacs.html
Eraldo
whenever I do latex export I get all text in one line even though I have " \n:t " set
jpablobr
but when I try to do the git-config-init it says that no such a file or directory, git
madpickle
check your path?
Eraldo
how can I make sure that my newlines are also newlines in the tex > pdf export
cluck
madpickle: true elisp is getting closer and closer to cl but if you believe the guile guys (and given their current results their credibility is on the rise) elisp will soon run in the guile vm
soopos_
What is wrong in the code "(setq-default viper-mode-function 'viper-mode)" in emacs.el?
madpickle
cluck: oh, i'm sure. right now, though, elisp is a bit wonky around the edges.
ryoma
cluck: will that be faster? slower? make lexical let better? make threading work?
cluck
elisp has always been wonky, that's a feature!
madpickle
threading sounds like a pipedream to me
cluck
;)
madpickle
i want PCRE before any of that.
guile too for that matter. i can live with elisp as it is.
Baughn
ryoma: Wait, let isn't normally lexical?
ryoma
not in elisp
Baughn
..oh hell.
ryoma
lol
Baughn
I've got two thousand lines of weirdly behaving code that assumes it is.
madpickle
good news, Baughn! That's why it's "weirdly behaving".
oh my, yes...
cluck
ryoma: yes, no, maybe, possibly
ryoma
you can try lexical-let maybe
Baughn
madpickle: No, I think there are plenty of other reasons why it is.
madpickle
i see the futurama joke was lost on you :/
Baughn
The issues I'm having with haskell-mode are enough to turn me off emacs. :/
Well. Almost. I suspect any /other/ editor would give me even /more/ trouble.
cluck
madpickle: pcre should come soonish, that's probably the main reason for raw strings
madpickle: afaik
madpickle
cluck: soonish? where'd ya read about that?
ryoma
raw strings? as in no escaping?
Baughn
As in no text properties, more likely
Escaping is a function of /displayed/ strings, not the string data structure itself
madpickle
i think he meant no backslash plague
Baughn
..well, that would make no sense
(Given the connection with pcre)
madpickle
strings go through the elisp interpreter regardless of whether you want to or not
cluck
madpickle: somewhere in the ml iirc
madpickle
which is why we have to double up on things in things like re-builder.
cluck: ml?
Baughn
It /would/ be nice to have a string format like bash's 'foo'
cluck
ryoma: yes
madpickle: mailing list
madpickle
the other issue is that the regex engine in emacs predates pcre (quite amazing when you think about it) which means that metacharacters like ( and ) aren't actually metacharacters: they have to be escaped explicitly.
doh.
keramida
Baughn: as in "no escapes performed"?
Baughn
keramida: Yes. The only character that's special to the '' syntax is ' itself.
soopos_
What is Vim's Ctrl-w in Emacs? I want to move between windows in Viper-mode.
Baughn
(Which, yes, means that '\'' is invalid)
idiopath
soopos_: Ctrol-x o
madpickle
just do pascal-style "escaping" of the quote char
keramida
I know. I'm guilty of writing 'literal'\''more literal' in shell scripts and then having to explain to other people what I meant :)
idiopath
*Ctrl-x o that is
aartist
, C-x o
fsbot
xusheng
,elisp
fsbot
From memory, Elisp is [0] at http://www.emacswiki.org/cgi-bin/wiki.pl?Elisp
[1] at http://www.emacswiki.org/cgi-bin/wiki.pl?elisp,
[2] see the built-in documentation via M-: (info "(elisp)Top")
soopos_
What is to the beginning of the file in Emacs like gg in Vim?
sepult
how do you start a program in background say deamonize through emacs ?
madpickle
M-<
sepult
i mean i have defined a variable for say starting mplayer, but
madpickle
soopos_: you really should follow the tutorial if you want to switch to emacs:
sepult
when i actually start mplayer my emacs freezes, but mplayer works
madpickle
,,tutorial
fsbot
tutorial is, like, [0] required reading to receive support here. To start it run "emacs -e help-with-tutorial" or type C-h t
[1] will appear in your language if a translation is available and your locale is set correctly (see "man locales")
xusheng
,tutorial
fsbot
xusheng: I heard tutorial is [0] required reading to receive support here. To start it run "emacs -e help-with-tutorial" or type C-h t
[1] will appear in your language if a translation is available and your locale is set correctly (see "man locales")
xusheng
,,tutorial
fsbot
tutorial is [0] required reading to receive support here. To start it run "emacs -e help-with-tutorial" or type C-h t
[1] will appear in your language if a translation is available and your locale is set correctly (see "man locales")
xusheng
,,tutorial
fsbot
xusheng, From memory, tutorial is [0] required reading to receive support here. To start it run "emacs -e help-with-tutorial" or type C-h t
[1] will appear in your language if a translation is available and your locale is set correctly (see "man locales")
sepult
how do you start a program in background say deamonize through emacs ?
i mean i have defined a variable for say starting mplayer, but
when i actually start mplayer my emacs freezes, but mplayer works
fsmunoz
sepult: you could try comint, overkill for that but it works
cluck
sepult: add an & to the end
fsmunoz
or that
sepult
the problem is this line i think (if (y-or-n-p (format "Run
command %s?" command)) (shell-command command))
keramida
sepult: mplayer prints lots & lots of output to its `terminal' wherever that is, but it uses "smart" tricks with "\r" to avoid changing the current terminal line.
sepult
nope (defvar dired-mplayer-program "/usr/bin/mplayer &") won't do it
fsmunoz
although comint could also be interesting in that mplaer has a "slave" mode.
sepult
so (shell-command command &) maybe then ?
keramida
So I think Emacs is reading output from shell-command, waiting for a newline which never comes :)
Eraldo
I do not get newlines when exporting to pdf I have no clue why that is ;(
sepult
so how can i concat one to shell command ?
or rather can i ?
Eraldo
so "test1\ntest2\ntest3" becomes "test1 test2 test3" on pdf export
I would prefer having each on a separate line though
cluck
sepult: & in the command
sepult
cluck: ?? example ?
cluck
(why do i even bother helping people that don't read the doc?)
sepult: concat it
sepult
ok
xusheng
How to use Emacs to write blog?
cluck
,muse
fsbot
hmm, muse is [0] at http://www.emacswiki.org/cgi-bin/wiki.pl?MuseMode
[1] Check out the #muse channel on freenode for discussion concerning the publishing environments muse and emacs-wiki
xusheng
thank you.
sepult
cluck: concat doesn't work too...
madpickle
are you sure?
(shell-command (concat command "&"))
sepult
no i have to start it with start-process only
i found
but
however i don't get the argument order to that right
instead of using shell-command i mean
so substiuting start-process with shell-command won't work
in the first run
Kanisterschleife
hi
When using emacs within mutt to compose mail, emacs does not find some files loaded via .emacs (for example, it can't load browse-kill-ring). whats the reason for that?
antoszka
Also, it breaks on UTF strings.
(whereas when I open the file externally, I get UTF ok)
Launched from mutt it just displays ? in place of UTF diacritics.
sepult
right
i got it now
heh
antoszka
Which is why i need to: set editor="vim -c 'set tw=72 ft=mail'" :(
« prev 1 2 3 4 5 6 7 next »