Hot answers tagged

44 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 ...
izkon's user avatar
  • 1,858
38 votes

How to change the current working directory?

M-x cd This should solve your problem.
ksinkar's user avatar
  • 546
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, ...
zck's user avatar
  • 9,072
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, ...
Drew's user avatar
  • 77k
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 ...
Resigned June 2023's user avatar
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 ...
Resigned June 2023's user avatar
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....
bmag's user avatar
  • 1,713
7 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.
Stefan's user avatar
  • 26.3k
7 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 ...
Asme Just's user avatar
  • 384
6 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-...
eflanigan00's user avatar
6 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 ...
npostavs's user avatar
  • 9,143
6 votes
Accepted

How do I add custom keybindings in spacemacs?

For spacemacs, the canonical way to make small modification as such is to put your configs inside the defun of dotspacemacs/user-config inside ~/.spacemacs file. If this is the first time you make ...
TerryTsao's user avatar
  • 1,216
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.
NAX's user avatar
  • 121
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 ...
npostavs's user avatar
  • 9,143
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 ...
Drew's user avatar
  • 77k
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.
goromlagche's user avatar
4 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 ...
zck's user avatar
  • 9,072
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 ...
amitp's user avatar
  • 2,521
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.
matteol's user avatar
  • 1,978
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 ...
Lev Lamberov's user avatar
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 ...
Gastove's user avatar
  • 1,541
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.
tasmo's user avatar
  • 86
3 votes
Accepted

How to change org-babel interpreter location

(setq org-ditaa-jar-path "/path/to/your/ditaa.jar")
whatacold's user avatar
  • 843
3 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 ...
Tobias's user avatar
  • 33k
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 ...
phils's user avatar
  • 50.4k
3 votes
Accepted

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 ...
Drew's user avatar
  • 77k
3 votes

How to change Emacs' word movement behaviour?

I use these commands to skip words but stop around symbols, (defun reluctant-forward (&optional arg) "Skip spaces and tabs following the point, then move past all characters with the same ...
Arch Stanton's user avatar
  • 1,625
2 votes

different emacs configurations

If you really want to use more than one full emacs configuration at the same time and not only some major mode configurations, then you can use the configuration that I have described here: https://...
Uwe Koloska's user avatar
2 votes

Does emacs have an option to display build settings?

In addition to system-configuration-options which lists the options that were used for the invocation of configure when the emacs executable was built, there is also system-configuration-features ...
NickD's user avatar
  • 29.2k

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