i am new to emacs ....i have installed autocomplete and configure it in my init file...but if i download a library from somewhere and has its include and lib file and want emacs to auto complete the function present in the include file of that library...what package do we install for it and how do we set emacs up to do it...?
i have heard CEDET package in emacs would be able to do it...but how to set it up..?
If there is another package..please let me know and guide me through the whole process?
There is a nice simplified introduction to installing CEDET at this url:
http://alexott.net/en/writings/emacs-devenv/EmacsCedet.html
or you can use the CEDET manual which comes with Emacs.
Related
When I tried to install flycheck package on emacs24, it show error that let-alist1.0.1 unavailable. But I heard that let-alist is built-in package of emacs25, I wonder is there any work-around for emacs24?
let-alist is available from ELPA. Use
M-x list-packages
to pull up a list of available packages, then search for let-atlist (C-M-s as usual). Then install it. See also here.
Alternatively, you can download it from here and install it manually. ELPA is easier, though.
I installed FSharp 3.1, Emacs 24 and fsharp-mode of emacs. Howerver the auto-completion feature (complete-at-point) didn't work. I followed all the instructions here https://github.com/fsharp/fsharpbinding/blob/master/emacs/README.md and added fsautocomplete.exe to my $PATH .
But it still didn't work.
PS:
I failed in Debian sid, Ubuntu Trusty and Mac 10.9.
I am the author. In order to have autocomplete in fsharp-mode, you must either be editing a script (.fsx) file, or a normal (.fs) file that is associated with a project (.fsproj) file.
If a .fs file is opened and no other project has already been loaded, then fsharp-mode will look for and load a .fsproj in the current and enclosing directories. This can be done manually using C-c C-p. At this point autocompletion will be available in all .fs files mentioned in the project.
If a project has not been loaded, then no autocompletion will be available in .fs files.
I tried to make this clear in the README.md. I'll have a look updating it, and trying to give feedback in the interface as to why autocompletion is not available.
The author gave me the solution that the .fs file must be in the same directory with the .fsproject relating to it.
I'm trying to set up a mode for editing Vala in Emacs. I've only found these instructions, and it seems that (for the first case with packages) marmalade no longer carries vala-mode, and for the second, csharp-mode always fails to compile when I try to install it! What should I do?
I just confirmed that vala-mode is not included in the marmalade archive, despite the link above. To work around this, from within M-x eshell execute:
$ wget http://marmalade-repo.org/packages/vala-mode-0.1.el
$ package-install-file vala-mode-0.1.el
package-install works with the network automatically, but package-install-file, and package-install-from-buffer are also available.
Of course this solution will not download it automatically going forward, so you should contact Marmalade maintainers to determine why it's not listing it in the archive, or possibly submit it for inclusion in Melpa.
Another useful thing you can do is install and configure an LSP language server. I've had some success with https://github.com/Prince781/vala-language-server.
You can then install lsp-mode (https://github.com/emacs-lsp/lsp-mode) and lsp-ui (https://github.com/emacs-lsp/lsp-ui) for Emacs.
And then create a compile_commands.json file for your Vala project. E.g.
[
{
"directory": "/home/user/projects/example",
"command": "/usr/bin/valac /home/user/projects/example/main.vala",
"file": "/home/user/projects/example/main.vala"
}
]
I haven't found an automatic way of doing this. But it's possible you could use CMake. CMake is definitely capable of generating a compile_commands.json. You would just need to describe your Vala project in a CMakeLists.txt file.
Then you add (lsp) to your vala-mode-hook:
(add-hook 'vala-mode-hook #'(lambda () (lsp)))
I'm pretty new to emacs and I'm currently trying to configure it properly for my needs, but I can't make it load web-mode at all.
So, this is what I've done:
Downloaded web-mode.el from GitHub
Made sure the file is located in the correct directory: ~/.emacs.d/web-mode.el
Used the installation instructions from the official page
My .emacs file now looks like this
Issue:
When I'm trying to edit any of the file types specified in the .emacs file, it only runs the default modes. PHP Abbrev for PHP etc... I'm not receiving any error messages and when I'm running --debug-init it does not give any output.
Emacs version: GNU Emacs 23.1.1 (x86_64-redhat-linux-gnu, GTK+ Version 2.18.9) of 2012-03-01 on sl6.fnal.gov
OS: Scientific Linux
Does anyone know how I can troubleshoot this further, or have solved similar issues?
You should let el-get install it for you. El-get is a package manager for emacs. It can install packages from github, emacswiki, elpa, an url, … http://wikemacs.org/index.php/El-get
It's very handy, you can update scripts easily, it manages dependencies, it lets you discover many stuff, you can easily share your config accross machines, etc.
Emacs 24 has package.el or ELPA by default. One can install it on emacs 23, but my experience isn't conclusive so I'd advise sticking with el-get, which is great.
Using the latest emacs 24.3 I want rainbow parenthesis for my lisp editing. I'm following the instructions on this page.
Here is what I get after I setup everything:
File error: Cannot open load file, rainbow-delimiters
To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file. Start Emacs with the
`--debug-init' option to view a complete error backtrace.
The byte compile proceded fine and created a .elc file. Is there a missing step in the instructions? How would emacs know where this compiled is located if there is no path mentioned anywhere in the .emacs file?
Not a direct answer I'm afraid but I would recommend watching this as rainbow-delimiters is available in MELPA and this will make managing Emacs extensions MUCH easier.