logs archiveIRC Archive / Freenode / #emacs / 2015 / September / 25 / 1
wgreenhouse
taylanub: moar like they're a relic from a time when oligarchs demonstrated their power by public works for the plebs if we're being honest here
dazed_and_amused
Pyrogerg: (add-to-list 'auto-mode-list '(\\.hs\\'" . haskell-mode))
forcer
taylanub: Did I annoy you with that "distribution-level packaging" talk yet?
taylanub
forcer: I seem to remember something like that
dazed_and_amused
Pyrogerg: replace .hs with whatever extension you want, and haskell-mode with the mode you want
sbrg
"\\.hs\\'", no?
missing first "
taylanub
but I don't remember the gist of it. I either watched it while sleepy, or skimmed it, or something else
forcer
taylanub: https://www.youtube.com/watch?v=egjcVGKwnrw
dazed_and_amused
oh whoopse
         

wgreenhouse
forcer: that talk made me sad for a whole week and made me look on my desktop with fear and loathing. :D
dazed_and_amused
"\\.hs\\'"
sbrg: good catch
forcer
taylanub: We have a problem with packages, but right now, the solution seems to be to either go "fu*k it, ignore it completely" or "damn kids on my lawn, it worked like this in '95 so it works now, too"
Fuco
"Use only small letters and numbers in your password"
Pyrogerg
dazed_and_amused: Sorry I'm such a noob, but is add-to-list a command I run after M-x, or is there a file with a list that I need to add to?
Fuco
this makes me ask what the fu*k is going on
sbrg
Nothing goes over my head. My reflexes are too fast. I would catch it!
Pyrogerg: Put that command in your .emacs or init.el
(add-to-list ..)
forcer
wgreenhouse: :-D
Pyrogerg
sbrg Thanks
taylanub
45 minutes is pretty long, so I'll make do with your summary for now, thanks :P
if we good a nice little army of guix packagers, then those ~250 jquery dependencies might actually get packaged in a reasonable time. maybe Guix will be our Lord And Savior eventually.
dazed_and_amused
Pyrogerg: if you just want that association to work for your current session only, you can evaluate that elisp with M-: (add-to-list .....)
wgreenhouse
forcer: especially as the path-of-least-resistance option/where the world is headed seems to be appstores that serve bundles of duplicative other-people's-libraries that never get updated
forcer
taylanub: It's an excellent talk. Especially for you as you're interested in guix and such. Put it on a list and take the time sometime.
taylanub
(Action) puts it on the todo
Pyrogerg
dazed_and_amused: Thanks, but I want it to be the default mode for files of this type.
forcer
It's pretty high on my list of "talks you should watch if you do *anything* professionally with computers"
dazed_and_amused
Pyrogerg: but if you want it to be permanent, you can add that bit of code to you startup file e.g. .emacs, .emacs.d/init.el, etc., and it will be run when emacs starts
forcer
wgreenhouse: Yep.
benaiah
Pyrogerg: it will be if it's in auto-mode-alist. if you want that change to persist, put it in your startup file. if you don't, use *scratch* or M-: to eval it
you'll need to eval it either way for the change to apply to the current emacs session, but you can do that by just hitting C-x C-e at the end of the line that you added to your init
e1f
public libraries are typicaly funded by the taxpayers
         

Pyrogerg
Hmm, it appears that I have a .emacs.d file, but not simply .emacs. Are those synonymous or do they serve different purposes?
benaiah
Pyrogerg: .emacs.d should be a directory
Pyrogerg
Ah, so it is. Slow learner.
benaiah
Pyrogerg: your startup file can be either ~/.emacs or ~/.emacs.d/init.el
sbrg
Pyrogerg: You can either use ~/.emacs (file) or ~/.emacs.d/init.el
benaiah: heh
at any rate, you still want an ~/.emacs.d directory. it is used for a lot of other stuff and is a good place to keep other elisp files you may write yourself
Pyrogerg
sbrg: Good to know. I'll choose the latter to keep everything organized in one place.
benaiah
Pyrogerg: most people use init.el because you can put it in git along with the rest of .emacs.d very easily
Pyrogerg
benaiah: That makes sense. I'm just starting to use git as well.
goglosh
you'll like magit
benaiah
magit is amazing unless you're on windows
goglosh
emacs is amazing unless you're on windows
bremner
life is amazing unless you're on windows
goglosh
beat me to it
benaiah
in which case it is slower than the movement of a sloth that's dead and stuck inside a glacier on a comet in deep space
bremner
git hates windows.
too many stat calls, iiuc
dazed_and_amused
thousands of kilometers per second?
bpalmer
life is amazing unless you're human.
dazed_and_amused
life is amazing unless you're a window
aaptel`
windows is amazing unless you're alive
benaiah
bremner: yeah I think the root problem is that subprocess forking is really expensive on windows and git uses a sh*tload of subprocesses
as well as the stat thing you mentioned,
s/,/
bremner
expensive forking sounds plausible.
does anyone understand why my org-mode grid tables (in agenda) have \emsp in the them?
turbofail
i used to use emacs on windows, it still worked pretty well
when combined with windows ports of coreutils anyway
benaiah
yeah emacs on windows is pretty okay
but magit on windows is totally unusable
I'm using emacs on windows right now
turbofail
hm
never used git at all on windows
benaiah
git cmd line interface is annoyingly slow, but not unusably. there's a most-of-a-second delay before the command returns, and longer for more complex stuff
magit just locks up emacs completely for very long stretches at a time
it takes a good 30 seconds or so to do magit-status here
catern
>With the advent of these easy-to-learn tools, it has become possible to undertake a project such as an entire mathematics textbook, with all calculations and graphing done within a single TeX document.
http://lwn.net/Articles/657157/
latex is getting worse than Emacs
benaiah
"easy-to-learn" "TeX" wat
twainwek
latex is pretty easy to learn
catern
it's lua
twainwek
especially with auctex... its heaven
holomorph
benaiah: are you on an ancient machine or windows
benaiah
holomorph: windows
bremner
why not both.JPG
Pyrogerg
dazed_and_amused: I'm confused about the quotation marks in that line. They don't seem to match either in what you wrote or in sbrg's correction. Would you mind re-typing the entire line that I need in my init.el file?
benaiah
it's a fairly underpowered computer too
sbrg
Pyrogerg: (add-to-list 'auto-mode-alist '("\\.pl\\'" . prolog-mode))
so replace "pl" with whatever extension you want
and prolog-mode with the appropriate mode
benaiah
2-core 2.5ghz, 4gb of ram, 256mb of vram
no dedicated vram
ngoldbaum
hi all - i'm a total elisp noob but I need to debug an annoying issue I'm seeing when I write reSructuredText using rst-mode
whenever I hit enter to get a newline, the previous line gets de-indented by one level
Pyrogerg
sbrg: Okay, so I read it correctly, it just seems oddly asymmetrical with regards to ', ", and (.
ngoldbaum
making me go back up and hit tab to get it at the right indentation level again
i have no idea how to prevent that behavior
anyone have some spare cycles to help me debug it?
wasamasa
deactivate whatever is reindenting the line
like, electric-indent
sbrg
Pyrogerg: there is only one '
ngoldbaum
that might be it, let me see if I have something like that turned on. Thanks wasamasa!
sbrg
inside the " quotes
« prev 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 next »