Is it possible to make emacs ecb (Emacs Code Browser)
not show .pyc and .pyo files in the directory browser?
You can customize the variable source-file-regexps which specifies which files are shown as source files. You can find it in the group "ecb-sources".
M-x customize-group RET ecb-sources
See also the ECB documentation.
Related
In emacs I have got the tuareg mode enabled in the top and the shell in the bottom without color syntax. How can I have color syntax in the shell?
In order to get here, I installed camllight using this script http://judicael.courant.free.fr/2015/02/20/installationcaml.html
then, I installed melpa
M-x list-packages
to search and to install tuareg. And finally, I edited .emacs with (add to list 'load-path "home/pi/.emacs.d/lisp") where lisp is a directory which contain tuareg.el, camldebug.el, tuareg-site-file-el
emacs window:
The mode that you're looking for is not the one that comes with Tuareg. The guy in the video is using the inferior-ocaml mode that is a part of an old caml-mode that used to be distributed with the OCaml compiler. Unless you really want the exact setup as in the video, I would suggest you use a more modern Tuareg mode together with the OCaml Merlin. Otherwise, you should remove Tuareg and install caml-mode using M-x package-install <RET> caml-mode <RET> (see also the documentation on the Github page of the project for more details).
I am editing a markdown file in emacs. Emacs automatically sets it to Fundamental mode and is auto indenting any newlines I enter. I tried disabling electric-indent-mode and didn't have any success. How do I disable this feature in this and other plain text files.
# Hello
a
b
c
d
Install markdown package:
M-x package-install RET markdown-mode RET
it supports .md files as well.
I installed Emacs 24.3.1 (using homebrew), which already comes with org-mode, but I can't find the documentation for org-mode within the Emacs built-in documentation (accessible via C-h i).
I can find the org-mode docs online here, but I'd prefer to read it directly in Emacs.
I find it very strange (in fact almost antithetical to the whole org-mode text orientation) to find myself having to read this documentation using a web browser, and not right inside Emacs.
Do I need to download and install this documentation separately in order to read it within Emacs? If so, where can I find the appropriate (texinfo?) files?
Or is this documentation already bundled by default with Emacs (and I just need to configure my current Emacs installation to be able to browse it through C-h i)?
Call up the info with C-h i.
Then call g (Info-goto-node).
Enter (org) at the prompt.
Or C-h o with the following code in your .emacs file:
(with-eval-after-load "org"
;; Display the Org mode manual in Info mode.
(define-key global-map (kbd "C-h o") 'org-info)) ; Not autoloaded!?
If you can access the Org mode documentation as others like abo-abo have described, you are all set. Read on if you still don't find it.
In your running emacs, look at the variable Info-directory-list. It's value may look somethng like this:
("/home/myself/.emacs.d/elpa/org-plus-contrib-20141222" "/usr/share/info/emacs-24" "/usr/share/info/" "/usr/share/info/")
The point here is there should be a directory which contains the Org mode documentation. Here it is the directory "/home/myself/.emacs.d/elpa/org-plus-contrib-20141222". You can look in that directory for a file called dir - which describes info files in this directory. In dir, a line like:
* Org Mode: (org). Outline-based notes management and organizer
says there is an info node describing Org Mode, and the top of that node is in the file org, in that directory. So you should make sure that file is in the directory.
I recently discovered the Emacs code browsing package (ECB) and it seems to be very useful.
I would like to activate ECB mode by default only when I open .c, .cu, cpp and .py files.
Please let me know how I should modify my .emacs file for this.
Thank you,
Gaurish
Probably best to follow the setting up semantic and file parisng guide for ECB here.
ECB File Semantic
I found this website and downloaded the color-theme files.
It says:
Put the file color-theme.el and the
folder “themes” (with the files
color-theme-example.el and
color-theme-library.el) in a directory
on your LoadPath.
and then I checked the load path website, which says:
To add a single directory to the load-path:
(add-to-list 'load-path "~/.emacs.d/site-lisp/")
My question is, where do I type this line?
If I do M-x and then type, it complains add-to-list[No match].
By the way, I am using Emacs 23.2(9.0) on Mac, a GUI version.
For the text version on terminal, I use black background seems fine, except the blue is too dark on black
An answer for newbs like me!
In Emacs 24.5.1, on mac or linux the following will work.
The following command will create a folder called themes inside your .emacs.d folder (assuming one does not already exist)
mkdir ~/.emacs.d/themes/
Now tell emacs that you have installed a themes folder. In emacs open your .emacs file, by typing the following:
C-x C-f ;;;this opens a new .emacs file or creates one if it doesn't exist
Add the following line to your .emacs file:
(add-to-list 'custom-theme-load-path "~/.emacs.d/themes/")
Now copy your theme's '.el' file to your .emacs.d/themes/ directory. A good place to find custom themes is here: emacsthemes.com
Now load your custom theme by typing the following:
M-x customize-themes ;;;now press return
Your newly installed themes should appear on the list like so:
Move your cursor to within the '[ ]' and press return to select that theme.
Enjoy emacs!
You can download Emacs 24 for Mac from here and Emacs 24 already has a built-in theming system. You can call it by M-x customize-themes and choose whatever themes you like. And you can find much more themes online. There is actually a quite nice theme called "solarized", you can use it both in GUI and command line.
I load color theme by this code:
(load-file "~/.emacs.d/color-theme/themes/zenburn.el")
(zenburn)
You should put that line in your init file. This is usually the file ~/.emacs. The .emacs.d directory is a conventional directory for storing your personal customization files. Many of the instructions for installing packages (like color theme) or explaining other parts of Emacs (like the load-path page) assume you understand the init file.
.emacs and .emacs.d are really at the core of Emacs customization. If you read up on those, Emacs will make a lot more sense. I hope that helps!
In emacs 23, I thought color theme is installed by default. If not, and you need to add that line, write it in either file ~/.emacs.d/init.el, ~/.emacs.el or ~/.emacs