Questions tagged [dot-emacs]

.emacs (dot-emacs where the initial period causes problems) is the name of the main configuration file of the emacs text editor.

.emacs (dot-emacs when the initial period causes problems) is the name of the main configuration, initialization, and customization file of the GNU text editor. In absence of .emacs GNU Emacs version 23 and higher uses .emacs.d/init.el as initialization file.

The contents of the Emacs initialization file is read and execute by Emacs at startup, and changing it is the most common way of customizing an Emacs environment. The configuration and customization directives in the .emacs file frequently invoke further packages so that the main file doesn't become impractically long: these are conventionally stored in the .emacs.d directory. In addition to hand-editing the file, changes to it can be made with emacs' M-x customize facility.

See also:

218 questions
0
votes
2 answers

How can I open a file upon starting spacemacs (emacs)?

I want to open a few (or at least one) .org file(s) upon starting spacemacs and I can not achieve this. I suspect it would be the same lisp code for spacemacs and emacs. Thus far I found this little snippet (find-file "~/todo.org") from this blog…
karrot42
  • 13
  • 2
0
votes
0 answers

Unable to connect Emacs to PostgreSQL Server

I am able to connect to PostgreSQL server on linux via the app "pgAdmin III". Here is the picture But when I try to connect Emacs to this database using the command M-x sql-postgres, the output says string-prefix-p: Wrong type argument: stringp,…
Lawerance
  • 131
  • 6
0
votes
1 answer

Hooking the new line number mode in Emacs 26.1 doesn't work

In my init.el file, I am using a hook to display line numbers in all programming modes: (add-hook 'prog-mode-hook 'linum-mode) When I recently upgraded to Emacs version 26.1, I wanted to take advantage of the new display-line-number-mode, minor…
mok0
  • 1,101
  • 1
  • 9
  • 8
0
votes
2 answers

.emacs.desktop file destroyed by custom function

I use the Emacs desktop module to save my open buffers between sessions. However I found that this accumulates more buffers than I want, so I wrote a small function to clean up the buffer list immediately before saving to the desktop file. This…
Martin
  • 1,261
  • 7
  • 11
0
votes
1 answer

Interaction between transient-mark-mode and cua-mode?

I'm writing some custom functions to move the point in specific ways, and I'm running into issues to manage the mark & region properly. For illustration purposes, here are a few lines of codes which don't do much really, they merely bind the [home]…
DaveC
  • 115
  • 8
0
votes
2 answers

how to write a locate-function for ede

I use emacs as a C++ IDE. I have CEDET and EDE configured and working nicely, but i have a minor problem. In my project header files are spread all over the project tree, so i need to write a function to help ede to find my headers. I have been…
thamurath
  • 765
  • 8
  • 24
0
votes
1 answer

Session manager for emacs (with high ssh usage)

I'm interested in using a session manager in emacs with the possibility of saving sessions by name. The problem is that I almost exclusively use emacs to edit remote files. For this, I use tramp, which also works perfectly. I want to have my…
Euge
  • 699
  • 10
  • 14
0
votes
1 answer

How to disable Meta-Cursor Shortcuds in markdown-mode?

I switch windows with M-left and M-right. Also Tab, S-Tab and C-Tab are hardwired into my spine. Since I use markdown-mode my workspeed has halved. How do I disable that markdown-mode re-assigns those keys on loading. The keys I describe are…
towi
  • 21,587
  • 28
  • 106
  • 187
0
votes
1 answer

Emacs - no menubar and toolbar

I installed emacs and it worked ok. I tried to change configuration file ( I made init.el file and copied Styling (Themes & More) part from: realpython.com After this operation I lost menubar and toolbar. I deleted my init.el file but all changes…
jundymek
  • 1,013
  • 4
  • 18
  • 40
0
votes
1 answer

How can I define auto-indent and auto-pairing in .emacs file for emacs 24.3.1?

Just FYI, I am new to the .emacs file. I would lik to set up my .emacs file to auto-indent and auto-pair a certain way to make writing code a little faster. I have found some info as to how to do these things independently but I'm not sure how to…
Quinn V.
  • 31
  • 3
0
votes
0 answers

Emacs configuration for xml files of FreeBSD Documentation Project

I'm using Emacs and trying to edit some *.xml files of FreeBSD Documentation Project. (https://www.freebsd.org/docproj/) It requires *.xml files to conform following conditions: Word wrap set to 70 characters. Tab stops set to 2. Replace each group…
hwong
  • 78
  • 7
0
votes
5 answers

can I disable the "(Type e to repeat macro)" message in emacs?

So, I've finally made the plunge, and have gotten to the state where I'm quite happy to have switched from vi and vim to emacs... I've been putting stuff in my .emacs file, learning how to evaluate things (not to mention becoming familiar with…
lindes
  • 9,854
  • 3
  • 33
  • 45
0
votes
1 answer

How tool-bar button in emacs works?

i have a problem to add a tool-bar button in emacs. I can run it with eval-buffer but not with my .emacs. When i add it with eval-buffer my button leave my toolbar after a scroll. ;;; Code: (defun omar-hotel () "another nonce menu function" …
user1990
  • 536
  • 3
  • 13
0
votes
1 answer

How do I disable all Emacs commands?

Is there a way to easily disable all Emacs commands? I'm trying to remap some commands I commonly use. ; Delete line (global-set-key "\C-d" 'kill-whole-line) In some contexts this doesn't always delete the whole line. I assume it's the underlying…
KeyHeart
  • 163
  • 2
  • 6
  • 17
0
votes
1 answer

From x-display-pixel-width in Emacs 23 to display-monitor-attributes-list in Emacs 24

In Emacs 23, evaluating (x-display-pixel-width) yielded the width of the current window. In Emacs 24 the same expression returns the combined width of all windows. How does one return the width of just the main/current window while evaluating the…
Calaf
  • 10,113
  • 15
  • 57
  • 120
1 2 3
14
15