technomancy / emacs-starter-kit
- Source
- Commits
- Network (257)
- Issues (8)
- Downloads (0)
- Wiki (4)
- Graphs
-
Branch:
master
-
Espresso+paredit do odd things when defining a new js function
1 comment Created 3 months ago by dgoodladI'm trying to type the following:
var foo = function(bar) {
return null; }When I open the first parenthesis, 'function (' is prettified with the fn symbol: that's fine.
When I type the closing parenthesis after bar, it highlights the left-paren briefly, then opens a newline automatically. ???
When I type the open brace, I can't indent the next line with the return statement. ???
When I type the closing brace, it automatically moves it up onto the same line as the return statement, with not even a space between it and the semicolon. ???
I've tried commenting out the code block that prettifies the 'function' keyword, which helps a little but now insists on inserting a space between 'function' and the left-paren.
Comments
-
Running into the following problem, opening up an application.js file.. than I try to type
jQuery(document).ready(function($)
then the minute I try to type { it returns "Symbols function is void: paredit-open-curly". This is the same problem I had prior to the brace -> curly change. This also happens when I try to use } but the error is then regarding paredit-close-curly-and-newline.
Comments
This can be solved. You need to comment out the 'eval-after-load' code block in starter-kit-js.el in your .emacs.d dir and it works fine later but you'll get some worse bugs like not being able to delete the flower braces etc.
so the solution is to open up the init.el file and then delete the line require('starter-kit-js.el) and delete the starter-kit-js.el file too and just create an espresso.el file and use the contents from here http://svn.savannah.gnu.org/viewvc/checkout/espresso/espresso.el?revision=210&root=espresso and restart emacs to get it working. (just use the latest espresso.el file from the svn)
P.S: Thanks to skorpan and daleharvey
-
The first time I open any ruby file I get an error. This only occurs the first time I'm opening a file.
Debugger entered--Lisp error: (void-function tramp-list-remote-buffers)
(tramp-list-remote-buffers) (subsetp (list (current-buffer)) (tramp-list-remote-buffers)) (not (subsetp (list ...) (tramp-list-remote-buffers))) (and buffer-file-name (file-writable-p (file-name-directory buffer-file-name)) (file-writable-p buffer-file-name) (not (subsetp ... ...))) (if (and buffer-file-name (file-writable-p ...) (file-writable-p buffer-file-name) (not ...)) (progn (local-set-key ... ...) (flymake-mode t))) (when (and buffer-file-name (file-writable-p ...) (file-writable-p buffer-file-name) (not ...)) (local-set-key (kbd "C-c d") (quote flymake-display-err-menu-for-current-line)) (flymake-mode t)) (lambda nil (when (and buffer-file-name ... ... ...) (local-set-key ... ...) (flymake-mode t)))() run-hooks(ruby-mode-hook) apply(run-hooks ruby-mode-hook) run-mode-hooks(ruby-mode-hook) ruby-mode() set-auto-mode-0(ruby-mode nil) set-auto-mode() normal-mode(t) after-find-file(nil t) find-file-noselect-1(# "~/code/rm/main/spec/models/candidate_spec.rb" nil nil "~/code/rm/main/spec/models/candidate_spec.rb" (32645779 234881026)) find-file-noselect("/Users/michaelguterl/code/rm/main/spec/models/candidate_spec.rb" nil nil) ido-file-internal(raise-frame) ido-find-file() call-interactively(ido-find-file)Comments
I was receiving this error while using CarbonEmacs on OS 10.6. I just installed the emacs-app port from Macports, that is based on 23.1 and the error has gone away.
Under Emacs 23.1.50.1 (Ubuntu 9.04) I needed to do a (require 'tramp-cmds) to stop this error.
-
ido-find-file confused when cursor over C comment
1 comment Created 2 months ago by mheffnerIf a C-mode buffer contains the text:
/******************************************************************************
inserting the cursor anywhere in the comment and running ido-find-file will try to locate a file named "/******************************************************************************" and fail.
Is this a bug with ido?
Comments
technomancy
Tue Oct 20 19:42:05 -0700 2009
| link
It's a quirk of ido-mode; I've run into it myself editing JS files. I'm sure it's possible to work around, but I haven't seen a fix yet. Would love to get a patch for it.
-
html mode used for *.html.haml instead of haml mode
0 comments Created 2 months ago by tepogaWhen I open rails template something.html.haml, nxhtml-mode is used for it. The strange thing is that the first template is opened with haml mode as expected, but all others are shown as html.
Checked it on clean emacs-starter-kit setup
Thanks
Comments
-
is it just me, or does the download link load something from August 2009 for everyone? Was going to get the latest goodness, but the current stuff I'm enjoying has regressed.
Gosh, I may have to figure out installing git on Windows at this rate.Comments
-
I'm getting errors during startup. It appears to be due to osx-plist-update-environment. It's reading .MacOSX/environment.plist and attempting to parse it as XML. On my machine (Mac OS 10.5.2), that file is a binary plist, not XML.
Backtrace at http://gist.github.com/233388
Comments
-
Hi,
i had some problems with the version of nXhtml you provide, when I started typing in a <%= %> on erb.html files emacs starts to hangs.I've asked on the rinari ml and they suggested me to update nXhtml-mode to 2.01, whit this version I had no problems.
http://groups.google.it/group/emacs-on-rails/browse_thread/thread/460722fbe81585ab
Comments
lobo-tuerto
Tue Nov 17 19:27:44 -0800 2009
| link
Yeah, the same happens to me.





You might just try M-x paredit-mode (to turn OFF paredit). I find paredit's notion of what javascript code should look like to be exceedingly annoying, wrong, and frustrating to use. Also, I don't like it much.