logs archiveIRC Archive / Freenode / #emacs / 2015 / July / 14 / 1
parsnip
okay, i think i have sol'n to my homework
foobar42
does anyone know of a way to access emacs via a browser, like emacsclient but for the web?
JordiGH
foobar42: I don't know if ymacs has implemented emacsclient.
,ymacs
fsbot
ymacs are, like, [0] an Emacs-like editor that works in your browser: http://www.ymacs.org/
[1] see vimjs
foobar42
darn ok
wasamasa
ymacs is pretty far from the real deal
mrmyers
y do you say so?
miskatonic
ymacs can't access the local file system, or at least it is not documented
parsnip
JordiGH: my homework: http://sprunge.us/ZLPG?py
oops, meant to remove first b = 0.
         

JordiGH
parsnip: lgtm
parsnip
it started out messy (and not working), so i tried to draw the flow diagram. at least it organized my thoughts, but it still didn't translate exactly, but at some point the boolean came to mind (i've seen this trick somewhere). not sure how to reliably get a flow diagram to inspire.
sdegutis
Is there a way to make Emacs automatically show dired in a given directory upon startup without opening a new frame for it (thus taking the place of *scratch*)?
This has been my question. Thank you for your time. Good bye.
JordiGH
Hm.
sdegutis
(Action) has left #emacs ("This has been my question. Thank you for your time. Good bye.")
JordiGH
,scratch
fsbot
I heard *scratch* is [0] the name of the scratch buffer, by default this is in lisp-interaction-mode
[1] development environment, partly aimed at teaching youths to program.,
[2] https://github.com/leoliu/scratch.el
parsnip
i guess this is how you break out of a parent loop.
JordiGH
,apropos scratch
fsbot
4 matches. (eshell-scratch-buffer fs-order-drink-scratch initial-scratch-message switch-to-scratch-my)
parsnip
(with a boolean)
JordiGH
,switch-to-scratch-my
fsbot
D'oh! Possible overly long search. Bailing.
JordiGH
,initial-scratch-message
fsbot
[g] http://www.emacswiki.org/emacs/EmacsInitFileOfSylecn
http://www.emacswiki.org/emacs/AlexSchroederConfigOrientalibombus
sdegutis
Anyone?
fsbot
Just ask your question. It's the best way to know if anyone can help.
JordiGH
sdegutis: ,,dv initial-major-mode
fsbot
Major mode command symbol to use for the initial `*scratch*' buffer.
You can customize this variable.
Defined in `/usr/share/emacs/24.4/lisp/startup.elc'.
ryouma
13:54 <JordiGH> ,switch-to-scratch-my -- do not do that in public
         

sdegutis
JordiGH: Very well then.
JordiGH
sdegutis: What happens if your .emacs you set that variable to dired?
sdegutis
JordiGH: That *may* help with dired, but not with setting the initial dired directory to ~/foo
bpalmer
then the initial buffer will be in dired-mode, but it won't be visiting the given directory
sdegutis
JordiGH: bpalmer is correct.
JordiGH
Wrap it in a lambda?
bpalmer
what if you (dired "/tmp") at the end?
ryouma
sdegutis: you can certainly kill the scratch buffer and run dired
i presume at least
emacs-startup-hook is useful for such things (there are several hooks around that time)
sdegutis
bpalmer: That opens a new frame. Since I'm using Emacs in a native GUI, that means launching Emacs creates two windows: *scratch* and the dired.
That's what I had before. I'd like to avoid having two windows.
JordiGH
How is dired even spawning a new frame for you?
Does that happen every time you start dired?
ryouma
is zero positive? emacs thinks it is in some cases, and seems to think it is not in other cases.
JordiGH
ryouma: It's a matter of convention.
ryouma
huh, and there is not a single convention?
JordiGH
The French think it's positive. Americans like me think that it's neither positive nor negative.
No, there isn't a single convention.
ryouma
outrageous
sdegutis
JordiGH: Wait let me try this again.
JordiGH
The French say that x is "strictly positive" if x > 0.
sdegutis
The last time I tried this was over a year ago.
So I could be mistaken.
JordiGH
ryouma: This, btw, is completely unrelated to positive and negative zero in floating point operations.
sbrg
http://stackoverflow.com/questions/2177687/open-file-via-ssh-and-sudo-with-emacs does the accepted answer here for editing files using sudo over ssh in tramp work for anyone else? When I try it, literally nothing happens.
rudybot
http://teensy.info/xz4IEUzjSQ
Sonderblade
it's the same with natural numbers, sometimes 0 is a natural sometimes it isn't
sbrg
I hit enter and it just .. does nothing.
ryouma
i thought naturalo numbers were always nonzero
whole numbers include zero
pi-alpha
we only use strictly for increasing/decreasing
ryouma: maybe depends on you're taling to
Sonderblade
no, 0 is often included to give the natural numbers an identity element
ryouma
so much for math being purer than cs
pi-alpha
who would win in set theory versus a turing machine
hmm, maybe i should try to translate it to C
w
*C-[ w RET
ryouma
for a second i read w as a smiley there
pi-alpha
no, pentadactyl fan club
sdegutis
I've given up.
Fuco
proper response when you tweak emacs
go with the flow, give in! don't fight the tradition
ryouma
not at all. emacs is tweaked by people who are not satisfied with the defaults.
benaiah
emacs is a program for masochists obsessed with self-improvement
kovrik
it's not self-improvement, it's emacs-config-improvement
benaiah
kovrik: but I sexually identify as an emacs
kovrik
My apologies then
benaiah
the mandatory sensitivity training shall commence shortly
kovrik
But I don't actually like that fact... I wish I spend that time on reading books and improving my skills, rather than tweaking my init.el
But I can't stop doing this...
benaiah
kovrik: I think somebody published an elisp book a while back
you could read that
kovrik
Mastering Emacs?
benaiah
in soviet russia, emacs masters you
pi-alpha
kovrik: if you learned anything from sicp, it should have been that you should be writing configs that tweak you configs for you.
benaiah
also in the rest of the world
kovrik
Nah, I'm reading Ulysses...but very slowly
pi-alpha: I didn't like SICP :(
pi-alpha
EMACS WILL READ IT FASTER
benaiah
,zombomacs
« prev 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 next »