emacs 25 doesn't load my .emacs config file - emacs

Fedora 24
emacs 25
I have installed Fedora 24 and installed emacs 25 that comes with Fedora.
Before I was using Fedora 22 with emacs 24.3.1 and had my .emacs file in ~/.emacs in the root of my home directory. Emacs would load that without any problem.
Now that I am using emacs 25 my .emacs doesn't load anymore. Just wondering has anything changed with it, to get it to load my .emacs file. My .emacs is in my ~/.emacs of my home directory.
Many thanks for any suggestions,

Is it .emacs "file"?
The way to place .emacs "file" in the home directory is obsolete, placing
.emacs.d "directory" in the home directory and placing init.el "file" in it is considered as modern customization I will.
Because by placing the init.el file it makes it possible
to byte compile. (Byte compile as init.elc)
to manage changes to the .emacs.d by git easy.
...
https://www.gnu.org/software/emacs/manual/html_node/emacs/Find-Init.html#Find-Init

Related

Removing emacs prelude package

I installed prelude with curl before realizing that the OSX version of emacs is too old for prelude. Now I can't find any documentation on how to remove it and I'm hesitant to just start deleting files in my emacs folder that have the word 'prelude' in them. Is there a command to remove this?
The simplest way is to ask prelude where it is installed. Try this (even if emacs does not fully load all prelude):
ESC-x describe-variable prelude-dir
It will tell you where prelude is being loaded from.
I use Ubuntu 16.04 LTS and solved this problem this morning. Here what I do:
cd home/yourusrname
find .emacs and .emacs.d, if not. press Cril + h.
You will also see 2 files named like .emacs-pre-prelude.. and .emacs- pre-prelude.tgz .These are your .emacs and .emacs.d before you install prelude.
del .emacs and .emacs.d
rename .emacs-pre-prelude as .emacs
tar .emacs.d-pre-prelude.tgz find the .emacs.d in it and mv it to your /home/yourusrname/. restart emacs.

Elpy and pylint: where should a pylintrc file be placed in order to customize pylint for Emacs?

I would like to remove the 80 characters per line limit when pylint is checking files in Emacs (I am using the Elpy package for Emacs). I am on Debian Wheezy, and I'm using the backported Emacs24.
I checked the docs out here regarding the pylintrc hierarchy: http://docs.pylint.org/run.html#command-line-options, and tried placing a pylintrc and a .pylintrc file in my working directory with no luck. I also tried putting a .pylintrc in my home directory, again with no effect.
I suppose the question might be asked, "what is my working directory when I call pylint from inside Emacs?". I don't have a good answer to that question...
Where should the pylint configuration file be placed? Should it be .pylintrc or pylintrc?
create file:
~/.flake8rc
[flake8] ignore = E501
#max-line-length = 160
AFAIK emacs flymake is using flake8 by default (?)
Try putting it in:
~/.config/pylintrc
If the ~/.config directory doesn't exist, create it. If that doesn't work try:
~/.pylintrc
You can place the .pylintrc wherever you like and then tell Emacs what to use with...
(add-hook 'python-mode-hook
(lambda ()
(setq flycheck-python-pylint-executable "~/.local/bin/pylint")
(setq flycheck-pylintrc "~/.emacs.d/settings/.pylintrc")))
I found this answer on the Emacs Stackexchange flycheck cannot find module for pylint and on my system ~/.emacs.d/settings/.pylintrc is a symlink to the rc file from work repository.

Emacs not recognising .emacs.d folder on startup

I'm new to Emacs. I recently got a dot-emacs configuration from GitHub. Cloned the repo in my home directory as .emacs.d
This is for setting up a clojure environment. When i open Emacs and enter
M-x nrepl-jack-in, the minibuf displays 'No Match'
What am I doing incorrectly? Thanks!
It's possible that nREPL isn't being loaded. Add the following to your init.el:
(autoload 'nrepl-jack-in "nrepl" nil t)
You should be able to run it now with M-x nrepl-jack-in.
If the command doesn't work you'll need to do some troubleshooting.
make sure that nREPL is actually installed. You'll need both the Emacs library and the nREPL server.
check for any errors during startup. Launch Emacs from the terminal using the --d flag:
emacs --d
You will get a backtrace if anything goes wrong during the startup.
verify that your init.el is actually being loaded. Add the following code to the end of your init.el and restart Emacs.
(message "---> LOADED")
This will show in your *Messages* buffer if everything is being loaded.
Edit:
Looks like your init.el isn't being loaded. Check your home folder for files called .emacs or .emacs.el, which might be getting loaded instead.
Otherwise it could still be a path issue. Open a terminal and make sure this is the file you expect:
less ~/.emacs.d/init.el

How to launch dired plus

I've placed the dired plus file in ~/.emacs.d, added (require 'dired+) to my ~/.emacs file and restarted Emacs. How do I launch dired plus?
Dired+ adds functionality to dired, so you don't launch Dired+ as such - just run dired as you would normally (e.g. M-x dired) and the added functionality should be available.
If Dired+ isn't loading, make sure that ~/.emacs.d is in your load-path - add this line to your init file if necessary:
(add-to-list 'load-path "~/.emacs.d")
Edit: As event_jr says, you should avoid adding .emacs.d to your load-path - create a new directory in ~/.emacs.d, install your Emacs Lisp files there, and add that directory to load-path. My answer was intended to fix your immediate problem, given where you'd installed the Dired+ file, not a recommendation to install packages in ~/.emacs.d.

How to install emacs colortheme

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