Using M-f in Jed - editor

In the Jed editor, you are supposed to be able to use M-f to move one word to the right. However, when I try to use Alt-f, it triggers the File menu. Is there a way to make this work?

I haven't tested this, but this site seems to have a solution:
. . . the solution is to place the following in $HOME/.jedrc
() = evalfile ("emacs");

Related

How to add semicolons to Dart code on save automatically?

I am coming from languages that don't use semicolons by default and I keep forgetting adding them all the time. Also it's annoying to type ; all the time.
Is there any VS Code plugin that will add semicolons on save automatically?
If it's not possible in VS Code, is it possible in some other editor like IntelliJ or something?
For anyone looking for an answer to this problem, add this to your settings.json in VSCode:
"editor.codeActionsOnSave": {
"quickfix.insertSemicolon": true,
},
That's not directly possible at the moment. You may try this extension: https://marketplace.visualstudio.com/items?itemName=vmsynkov.colonize

overriding front template translations doesn't work

I'm working on prestashop and I'm Trying to override "order detail page" in front (customer's details orders).
This is how I did :
I copied file \controllers\front\OrderDetailController.php into folder \override\controllers\front\OrderDetailController.php
I copied also default template file order-detail.tpl into folder override/customtemplate/order-detail.tpl
And In OrderDetailController.php I have specified template directory like that
$this->setTemplate(_PS_OVERRIDE_DIR_ . '/themes/parfum_evo/order-detail.tpl');
I tried, it works fine except translations. Even watching the documentation, no test solution seems to work.
Could anyone help me? Thank you in advance :'(
The php override sits in the correct place. As for the other, you specified the path the override/customtemplate/order-detail.tpl but then placed it in override/themes/parfum_evo/order-detail.tpl. I take it as customtemplate is farfum_evo really, but you need to add another one named themes, after override, using that structure. I think. Because there is a hook named
DisplayOverrideTemplate
Which should take care of this, while I believe setTemplate for controllers will always grab from the main theme folder

Moving up a line in FSI.exe

Ok, We all love fsi, but I hate it when I type in the wrong thing and then I want to go up a line and it won't let me....
Is there some kind of shortcut I am missing?
For example, here is a mutually recursive discriminated union. Oh crap, I screwed it up. I want to go back, but I can't.
How do I go up one line and fix stuff?
If you've already committed the line, you can either redefine it (you can define the same types/functions as many times as you want in FSI), or start over. That's why the preferred way to use FSI is: write the code in a script file and 'Send to Interactive'. That avoids this issue.

How to force SciTE to reload a file automatically?

I think that SciTE can do it but it doesn't work for me. Is there any option to setup?
I have set load.on.activate=1 in my SciTEUser.properties which works like a charm.
EDIT:
Use it in combination with save.on.deactivate=1 and reload.preserves.undo=1. The SciTEDocs will tell you more.
Add this line on the SciTEUser.properties file:
save.session=1

Problems with Netbeans re: Rails erb/rhtml intellisense?

I've been using Netbeans for Rails and like it a lot, considering how little I paid for it. But something that bothers me is that when I'm editing an RHTML or ERB file, it doesn't do the code autocomplete - or at least not reliably. Sometimes it shows the appropriate variables and methods that are available on an object after you type the dot operator. Sometimes it ignores the instance variables. Is there a solution for this? (Please don't say RadRails).
Oh and one more thing in case anyone has solved this: considering how often I have to type <% when I'm in a Rails template, I wish there was some hotkey for autotyping the tag . . . ? I always have to stop and look down at my keyboard to find the < and % keys before I can type the tag so it's not as trivial as it might sound.
I believe you're looking for something like this:
http://ruby.netbeans.org/codetemplates-rhtml.html
Type in one of the triggers, then hit the tab key to expand it to the code as given.
Also, you might want to explore using HAML. It's much easier on the hands.

Resources