|
Only myself and one other co-worker at my lab actually like emacs and everyone else constantly complains about it because Proofgeneral only works properly in emacs/xemacs so they are all forced to use it. Glad to have a place where I can come and talk about emacs and feel safe. Those vi users are mean
|
# ? Oct 25, 2011 11:11 |
|
|
# ? Apr 28, 2024 02:44 |
|
'RIP Lacking a Lisp thread, I think this is appropriate here.
|
# ? Oct 25, 2011 11:46 |
|
Beef posted:'RIP Great programmers never die, they just go out of scope.
|
# ? Oct 25, 2011 14:25 |
|
RIPL> ( )
|
# ? Oct 25, 2011 16:19 |
|
quote:Here lies a Lisper / Uninterned from this mortal package / Yet not gc'd / While we retain pointers to his memory
|
# ? Oct 25, 2011 17:00 |
|
orphean posted:stuff
|
# ? Oct 25, 2011 17:01 |
|
code:
|
# ? Oct 25, 2011 17:34 |
|
orphean posted:
I'm using emacs 23. I've been using bitmap fonts forever since emacs couldn't render fonts properly and every time I've switched to a real font it seemed kind of "off" to me. I guess I just need to adjust.
|
# ? Oct 25, 2011 18:16 |
|
Yeah if you use a truetype/opentype font you can leverage Emacs' new font rendering. A bitmap is a bitmap, that's always going to look the way it does. I find that DejaVu font to be the One True Font (crossplatform, huge amount of unicode codepoints included, etc) but try out a few! Can't hurt.
|
# ? Oct 25, 2011 18:20 |
|
I'm starting to hate aquamacs more and more. Last few versions were unstable as gently caress. Now that it finally works in Lion it just freezes if I try to even change the font. Time to configure the regular emacs?
|
# ? Oct 28, 2011 15:04 |
|
Beef posted:I'm starting to hate aquamacs more and more. Last few versions were unstable as gently caress. Just install homebrew, and `brew install emacs --cocoa --use-git-head --srgb`. The purest, most OS-friendly Emacs build for Mac, period. If you're feeling sassy you can even get integrated Lion fullscreen by adding this to the emacs formula: code:
It works like a dream, except I've found I've had to quickly enable and disable menu-bar-mode in order to hide a stubborn toolbar rectangle in the fullscreen mode.
|
# ? Oct 28, 2011 15:38 |
|
Fren posted:emacs.rb A dark day indeed. Anyone running emacs-head know if its possible to make a color theme buffer local using the new theming stuff? I want a different color theme for my terminal buffers but don't want to change the theme globally. \/\/\/ orphean fucked around with this message at 17:38 on Oct 29, 2011 |
# ? Oct 29, 2011 04:19 |
|
orphean posted:A dark day indeed. Brew uses ruby as it's configuration language, that's all that is.
|
# ? Oct 29, 2011 16:06 |
|
The second Emacs 24 pretest was released today. If you're still on 23.x or the earlier pretest (and you don't track HEAD) now's a good time to check it out. From my experience, its stable for day to day use in both linux and win environments. The best new feature is obviously animated gif support. Gonna bling my buffers like geocities, yo. Edit: haha it's orphean fucked around with this message at 06:34 on Oct 31, 2011 |
# ? Oct 31, 2011 06:12 |
|
Any changes that will make me more productive? I've got a deadline on Thursday and I need to soothe my conscience that it will be worth the switch
|
# ? Oct 31, 2011 13:17 |
|
Beef posted:Any changes that will make me more productive? I've got a deadline on Thursday and I need to soothe my conscience that it will be worth the switch If you're not using Emacs already and you have a deadline, I would not recommend switching editors. Worst case scenario you won't understand what you're doing in time to get back all the momentum you lost (muscle memory, features, etc), then you're hosed and you'll blame Emacs. Practice Emacs in your free time before you bust it out in a Real Life setting.
|
# ? Oct 31, 2011 14:27 |
|
e: f, b.Beef posted:Any changes that will make me more productive? I've got a deadline on Thursday and I need to soothe my conscience that it will be worth the switch Don't gently caress with switching editors three days before a deadline. That's daft. Load it up on Friday and C-h t
|
# ? Oct 31, 2011 14:37 |
|
Beef posted:Any changes that will make me more productive? I've got a deadline on Thursday and I need to soothe my conscience that it will be worth the switch This is called Yak Shaving. Don't do it.
|
# ? Oct 31, 2011 15:03 |
|
Beef posted:I've got a deadline on Thursday and I need to soothe my conscience that it will be worth the switch Anyway, for a more serious post for once one of the best new features in Emacs 24 is that Elisp now supports lexical binding. This is a massive improvement and fast-forwards Elisp a couple decades in terms of lisp development. Closures, in my Emacs? For now dynamic binding is still the default (since packages will need to be rewritten) but Emacs 24 provides the buffer-local lexical-binding variable which lets you turn it on for your own stuff. Here's a couple of IELM sessions showing it off: Dynamic Binding code:
code:
|
# ? Oct 31, 2011 17:55 |
|
Holy poo poo. ... Emacs has a REPL for Elisp? How the gently caress did I not know that?! Also, the lexical binding stuff is pretty fantastic. I understand that this may be the beginning of writing code that doesn't block (i.e., waiting for the interface to respond after checking Gnus IMAP), though I'll admit I don't understand fully how the two concepts are related. Could you shed some light on that?
|
# ? Oct 31, 2011 18:54 |
|
Fren posted:Also, the lexical binding stuff is pretty fantastic. I understand that this may be the beginning of writing code that doesn't block (i.e., waiting for the interface to respond after checking Gnus IMAP), though I'll admit I don't understand fully how the two concepts are related. Could you shed some light on that? Asynchronous callbacks? Please say it's asynchronous callbacks. Then I can do flymake in tramp.
|
# ? Oct 31, 2011 19:04 |
|
Fren posted:Holy poo poo ... How the gently caress did I not know that?! emacs.txt (IELM rocks!) Fren posted:Could you shed some light on that? The basic idea is pretty simple. Right now every variable in Emacs is basically a Global variable. This is why you see everything named like <package-name>-<foo>-<bar> because if they didn't include the package name there's a good chance whatever the variable/function/whatever is is going to clobber another one. Now imagine multiple threads all accessing the same globals variables at once. It is non-trivial to make a threaded system in such a way that no thread will try to access the same variable at once, or get into cycles where one thread is waiting for another thread which is in turn waiting back on the first thread and they're just deadlocked forever (Incidentally this is what happened to the Mars rovers, a race condition got left in. Its a very hard problem to solve! They could debug it because they had a REPL since they were using lisp~) So what lexical binding does is make it so functions can "close over" their own private variables so that nothing else can access them AND so they retain their state. Its much easier to do concurrency when you don't have a huge bramble of global variables getting in the way. Edit: Felt like I needed an example. In the lexical binding thing I posted earlier there was this snippet: code:
Now we can create multiple adders. We could have an adder6, an adder12, whatever and it'll just work. With only dynamic binding (what Emacs has had until now) to do something like this you'd need to store the value of x somewhere since we saw that in dynamic binding x=3 isn't saved and its nil when we try to call our adder. Since everything is global that means only one x at a time and we're back to the problems with that. Zombywuf posted:Asynchronous callbacks? Please say it's asynchronous callbacks. Then I can do flymake in tramp. Not yet, but it's an important step on the way to asynchronous callbacks. orphean fucked around with this message at 19:43 on Oct 31, 2011 |
# ? Oct 31, 2011 19:29 |
|
As someone who doesn't really use emacs much, and has never played around in Elisp, I'm really confused. I'd consider closures and the like a huge aspect of a lisp-like language. Did Elisp really not have anything similar until now?
|
# ? Oct 31, 2011 20:28 |
|
With Elisp you got to remember that it predates Common Lisp and is a derivative of MACLisp. Its a really old fashioned lisp that's being dragged kicking and screaming into something more modern. Heck there's still really powerful lisp features that Elisp still doesn't do. Things like reader macros and even packages. Personally I'd like ELisp to be Common Lisp, but RMS hates common lisp so that's never going to happen. \/\/\/ Climacs is a horrible tease. orphean fucked around with this message at 21:12 on Oct 31, 2011 |
# ? Oct 31, 2011 21:07 |
|
There's always Climacs...
|
# ? Oct 31, 2011 21:11 |
|
I wonder how much work it would require to write a solid Emacs in Common Lisp, from scratch. Climacs looks like it sits directly on top of CLIM, which looks like a bunch of useless bullshit specifications that no one cares about. Make some easy decisions first: target one implementation (SBCL) and one windowing API (Cocoa ). Get a window, implement buffers and frames, and anything in Emacs's C foundation that's not already taken care of in CL. I smell a goon project.
|
# ? Oct 31, 2011 23:16 |
|
The problem isn't necessarily writing emacs in common lisp. Not that that's easy but it's not the main chunk. The main chunk is getting all the elisp rewritten in CL which is a monumental undertaking.
|
# ? Nov 1, 2011 00:01 |
|
With 'change' I meant 'change from emacs23 to emacs24'. I just switched to the Solarized color theme: http://ethanschoonover.com/solarized Dear god that's an improvement on the eyes to my green-on-black theme.
|
# ? Nov 2, 2011 18:28 |
|
So with the new Google Reader experience I've imported my RSS feeds into Gnus. Suprisingly simple and effective, aside from some formatting issues in feed items. I love being able to use the same interface for mail as I do for feeds, and after I discovered group topics, everything's all neat and organized. Of course, now I need to write an nnatom backend because those imports didn't make it in
|
# ? Nov 3, 2011 17:08 |
|
Has anyone figured out a way to run an Emacs server on one computer, and connect the *actual* Emacsclient executable on another computer to it? I don't mean SSHing in and running a terminal emacsclient, nor do I mean SSH with X forwarding and running the graphical emacsclient. Native client, remote server is what I'm after.
|
# ? Nov 4, 2011 18:41 |
|
Fren posted:Has anyone figured out a way to run an Emacs server on one computer, and connect the *actual* Emacsclient executable on another computer to it? I don't mean SSHing in and running a terminal emacsclient, nor do I mean SSH with X forwarding and running the graphical emacsclient. Native client, remote server is what I'm after. I haven't played with this, so sorry if you've already seen it. This is suggestive: Emacs info posted:Even if local sockets are available, you can tell Emacs to use TCP by setting the variable server-use-tcp to t. One advantage of TCP is that the server can accept connections from remote machines. For this to work, you must (i) set the variable server-host to the hostname or IP address of the machine on which the Emacs server runs, and (ii) provide emacsclient with the server file. (One convenient way to do the latter is to put the server file on a networked file system such as NFS.) It looks like the tricky bit is that the server file needs to be shared out-of-band. The source code for server-start also mentions a server-port variable, which might be useful if you need to punch through a (hopefully internal) firewall. There is zero encryption going on here and minimal authentication, I would only make this accessible via an SSH tunnel or point-to-point VPN if possible. (As a bonus, you can use scp to grab the server file, so it doesn't have to live in a shared filesystem.) Please report back if you get it working, I'll be interested to see how it goes.
|
# ? Nov 4, 2011 20:44 |
|
pgroce posted:It looks like the tricky bit is that the server file needs to be shared out-of-band. The source code for server-start also mentions a server-port variable, which might be useful if you need to punch through a (hopefully internal) firewall. Sounds like this might be a job for sshfs.
|
# ? Nov 4, 2011 21:33 |
|
Update on this. Server: code:
code:
|
# ? Nov 5, 2011 19:35 |
|
What happens if you pass -d <DISPLAY> to emacsclient? It sounds like the basic mechanism is working and you just need to tell emacs which xserver gets the frame.
|
# ? Nov 5, 2011 23:54 |
|
Still no luck
|
# ? Nov 6, 2011 01:23 |
|
So emacs is running on the server, emacsclient can connect to it. Since passing in the display didn't work I'm thinking that the server emacs doesn't see your local display. There needs to be a connection between your server's Xserver and your local workstations Xserver. What does (x-display-list) return on the server emacs? If your local workstation's display isn't in there then its not going to work I don't think.
|
# ? Nov 6, 2011 03:03 |
|
I wonder if emacsserver is a server in the same way that Xserver is a server. i.e. the server is supposed to be run wherever the user is sitting.
|
# ? Nov 6, 2011 12:13 |
|
The first Emacs mode I've written has been released. It's a gopher client for Emacs, and it's called gopher.el.
|
# ? Nov 8, 2011 15:02 |
|
A thread about emacs! Can we talk about favourite modes and how they make us feel inside? I have been using org-mode for about a year now and I am very impressed with the power of it; I only really use it for notes and todo lists. Most of the time my group mates (university project group) hate that I write notes from meetings in org-mode because they find that it is hard to read, I found a solution: Publishing to html and having a stylesheet which makes everything all pretty. Currently my biggest problem with emacs is that color-theme-mode can't customize the area below numbers in linum-mode, at least not in any place I have been able to locate, it creates a weird gap between numbers when you have multiple "lines" on one line (that is the arrow thing in the fringe).
|
# ? Nov 8, 2011 15:16 |
|
|
# ? Apr 28, 2024 02:44 |
|
The coolest thing about org-mode is tables. <3 org-mode tables. What's the font-face for clickable hyperlnks? I just moved over to Solarized, but I still have obnoxious neon-teal hyperlinks. I want a pretty Emacs. e: It looks like it's just happening in jabber.el -- Solarized has faces for link and link-visited. Time to poke at jabber.el, I guess. pgroce fucked around with this message at 17:39 on Nov 8, 2011 |
# ? Nov 8, 2011 17:14 |