Hot answers tagged

35 votes
Accepted

Does emacs have an option to display build settings?

Take a look at the system-configuration-options variable. Here's an example, which is the result of running C-h v system-configuration-options system-configuration-options is a variable defined in `C ...
  • 1,598
34 votes

How to change the current working directory?

M-x cd This should solve your problem.
  • 506
11 votes

How to get the same Emacs environment on a different computer?

If you use use-package, you can move that file around from computer to computer, and when Emacs starts up, as long as you have internet access, it will pull in the packages and configure them. First, ...
  • 8,659
9 votes

How to get the same Emacs environment on a different computer?

Next-generation package management with straight.el After a long and frustrating struggle to use package.el + Quelpa to manage my packages, I bit the bullet and wrote my own package manager. It is ...
9 votes
Accepted

How to get the same Emacs environment on a different computer?

The correct solution is to use straight.el, a package manager that I wrote to solve this problem. You can find more details about this in another answer to this question. This answer, which was ...
9 votes

How to change the current working directory?

C-h f cd: cd is an interactive compiled Lisp function in files.el. (cd DIR) Make DIR become the current buffer’s default directory. If your environment includes a CDPATH variable, ...
  • 71k
8 votes

different emacs configurations

How can I keep multiple profiles for Emacs? In a single init file. As others have suggested in the comments above, this is easily done in emacs without having multiple profiles. A single init file ...
  • 5,433
8 votes
Accepted

Where to put user configurations/defaults for spacemacs?

setting default value for auto-fill-column Normally, you'd put such configuration in dotspacemacs/user-config, which is a function in your dotfile (~/.spacemacs). It's possible to use a ~/.spacemacs....
  • 1,693
6 votes
Accepted

How to change the current working directory?

I think the only way Emacs offers to control the cwd of the process is the --chdir command line argument. Once the process is started, there is currently no way to modify it.
  • 25.5k
5 votes

File error: Cannot open load file, no such file or directory, multi-web-mode

You can type M-x ielm Then in the REPL type load-path to see what the default is. I know package manager appends to it but I'm not sure what else (if anything) does. You can add (add-to-list 'load-...
5 votes
Accepted

Configure Magit user name and email

Since Magit can't find my .gitconfig file even though it is in the HOME path of Emacs, git config --system can be used to change user name and email such that Magit can find them.
  • 121
5 votes
Accepted

Unable to link emacs.d directory

Symlinks usually work fine in this scenario, so that's unlikely to be a problem. You should check the file and directory permissions.
  • 44.3k
5 votes

Can't adjust font size anymore in emacs 25

This is most likely an instance of Emacs bug#25228 - custom-set-faces from init file ~/.emacs ignored. Basically Emacs is applying gconf settings which override your customization (Emacs versions ...
  • 8,853
5 votes

Use several Emacs configurations/versions simultaneously

I just did that using chemacs. Considering you don't have an .emacs file in your home folder you can follow this instruction to install it: Clone the Git repository, and run install.sh $ git clone ...
  • 339
5 votes
Accepted

How to make the natural language for Emacs be English?

I would like to have emacs in English only, Emacs is already English only. to have for example eshell or built-in gdb output in English. gdb output is not builtin to Emacs, it comes from gdb. By ...
  • 8,853
4 votes
Accepted

What controls things like cursor appearance in a terminal?

The terminal application has full control over the graphical elements. The gui terminal app will give text applications some control via “escape codes”. For example, vt100/xterm terminals, including ...
  • 2,266
4 votes
Accepted

UNIX config files, load conf-unix-mode

If you mean specifically "all files in the /etc/ directory," you could add an absolute path to your auto-mode-alist: (add-to-list 'auto-mode-alist '("/etc/.*" . conf-unix-mode))
  • 31.4k
4 votes

How to get the same Emacs environment on a different computer?

You can use cask to manage your packages. Use git/github to source control and sync your emacs dotfiles.
4 votes

Does emacs have an option to display build settings?

Dunno about a command-line switch, but: If you use library emacsbug+.el, which enhances standard library emacsbug.el, then you can use command ebp-insert-version with a prefix arg, to insert the ...
  • 71k
4 votes

Copying Emacs configuration to different computer

On the first computer you have AUCTeX installed, on the second one emacs is using its default mode for editing tex files.
  • 1,713
4 votes

two different config files for Emacs

As I can see from one of your comments, the main point is to run Emacs faster in some cases. Then there are several options for you. You can load your GUI-related configuration only when you run ...
4 votes
Accepted

Is it possible to change to Emacs input mode with Doom Emacs?

The vi emulation of Doom is provided by evil-mode (see Section "Feature Highlights" of readme.md). The Evil Manual says in Section 1.2 "Modes and states" that you can toggle ...
  • 30.8k
3 votes

two different config files for Emacs

You can achieve this "fast load, slow load" using the server/client functionality of emacs, which works like this: Emacs can be started as a server. This can either be done as a stand-alone, running ...
  • 1,501
3 votes
Accepted

How can i start web-mode at a file's startup?

This line is in error: (add-to-list 'auto-mode-alist '("\\.tpl\\.php\\'" . web-mode)) It doesn't open .tpl files and .php files in web-mode, it opens files ending .tpl.php in web-mode. Amusingly, I ...
  • 8,659
3 votes
Accepted

What is the emacs/elisp equivalent of 'include'?

The easiest way is to use load. (load-file "~/elisp/foo.el") More ways you can find in the Spacemacs configuration layer docu.
  • 86
3 votes

How can I determine which package is adding .emacs.d to my load-path?

The Bug-Hunter may be able to help you with that. Install the bug-hunter package from the Package-Menu. Invoke M-x bug-hunter-init-file It will ask you for an assertion, type (or paste) in the ...
  • 22.5k
3 votes

How can I determine which package is adding .emacs.d to my load-path?

Two approaches come to mind. Use rgrep ... to search for offending code: Open your elpa directory in Dired. If you're not sure where this directory is located, check the value of package-user-dir ...
  • 14.3k
3 votes
Accepted

How to change org-babel interpreter location

(setq org-ditaa-jar-path "/path/to/your/ditaa.jar")
  • 833
3 votes
Accepted

How can I save a personal bookmark file?

Did you clobber your original ~/.emacs.d/ directory? You may have lost all manner of things if you've done that. Assuming you backed it up first, just grab the ~/.emacs.d/bookmarks file from your ...
  • 44.3k
3 votes

How to configure emacs to start in the middle of the screen, and not in the top left corner?

Customize default-frame-list to have values for frame parameters top and left that put it in the middle of your screen. (Use M-x customize-option default-frame-alist.) If that doesn't do the job ...
  • 71k

Only top scored, non community-wiki answers of a minimum length are eligible