Questions tagged [emacs]

For questions regarding usage of the Emacs text editor. See also the Emacs Stack Exchange: https://emacs.stackexchange.com

Filter by
Sorted by
Tagged with
4 votes
2 answers
1k views

emacs can't overwrite user's own write protection on file

On a recently installed fedora 25 system (uname -a → Linux [host] 4.10.6-200.fc25.x86_64 #1 SMP Mon Mar 27 14:06:23 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux; using GNU Emacs 25.1.1 (x86_64-redhat-linux-...
Gyula's user avatar
  • 41
0 votes
1 answer
573 views

How to preview a directory of images in (spac)emacs?

dired (or ranger which I prefer) is great for directory browsing, but what you see are basically the filenames, which is good for almost all uses... except when you're browsing your photos. Does ...
Ng Oon-Ee's user avatar
  • 185
2 votes
1 answer
993 views

In Emacs org-mode, is there a way to auto-link to files?

So I'm playing around with spacemacs, considering a switch from vim. In Vim, my favorite plugin (one I can't live without) is vim-notes. Vim-notes has a neat feature where, if you you're writing a ...
Jonathan's user avatar
  • 2,099
3 votes
2 answers
1k views

Why my ctrl+semicolon was bound globally?

My ctrl+semicolon (ctrl+;) key seems combination to have been bound to some sort of broken auto-complete program. Whenever I am in typing mode(in terminal, nano, etc), my ctrl+;) combination is bound ...
vinc's user avatar
  • 91
0 votes
1 answer
216 views

How to open a file with emacsclient without console-hijacking?

I set up an emacsclient according to this answer, but there's a little detail that annoys me a lot. emacsclient file.txt opens a file in an active view, everything looks smooth except for the: ...
KeyWeeUsr's user avatar
  • 328
2 votes
0 answers
1k views

Emacs can not activate fcitx

I can use fcitx normally in all of other programs. But I can't not use fcitx in Emacs which means I can not switch to other input method such as Chinese input method. I tried a lot and Googled a lot ...
abel_abel's user avatar
0 votes
0 answers
261 views

Bash - Emacs having trouble opening multiple windows

I'm not sure I'm using the term window correctly in relation to emacs, but I am trying to do a homework assignment using emacs in a bash shell. I want to open emacs and have it run in the background ...
user avatar
2 votes
0 answers
422 views

Can entries from multiple org-mode files with date trees be consolidated into a single timeline?

For example, is there a way to combine entries from a work diary.org, workout.org, and personal.org file to produce an entry like: * 2017 ** 2017-01-30 Monday *** onboarded new employee *** reviewed ...
bantabla's user avatar
1 vote
4 answers
6k views

Screwed up PATH in ~/.bash_profile, now cannot edit it

I actually screwed up the $PATH variable in my ~/.bash_profile while installing some software. Instead of using export PATH=$PATH:/some/other/path I idiotically did this export PATH=~/some/other/...
ShanZhengYang's user avatar
1 vote
0 answers
62 views

must install package each time I restart emacs?

On emacs, I must do M-x package install for the package google-translate each time I restart emacs, is this normal? (new to emacs)
georg's user avatar
  • 119
2 votes
2 answers
183 views

How do I put EMACS local variables into a HTML file?

GNU Emacs Local Variables make it possible to enable or disable modes automatically when a file is opened. I'm interested in disabling auto-fill mode when I open .HTML files. I want to use Local ...
vy32's user avatar
  • 3,361
1 vote
0 answers
478 views

Emacs “Ctrl+.” and “Ctrl+,” don't work in terminal

I use Ctrl+. and Ctrl+, in Emacs. These work well on X displays, but not in a terminal window. Other combinations, such as Ctrl+[ and Ctrl+] both work for me. Why do some combinations work only in ...
Tubo Yang 杨英超's user avatar
1 vote
1 answer
164 views

Emacs strange key conflict

In Emacs I often get a box popping activated, but I don't know how it does activate nor how to deactivate it, because it is cryptic, I don't know what it is. The box is conflicting with a very ...
mikl's user avatar
  • 183
1 vote
0 answers
302 views

Using aspell with emacs on Debian

I have a personal spelling dictionary that I'd like to share between a laptop running Windows + Cygwin, and a desktop computer that runs Debian. Emacs(21) comes with ispell integration, M-x ispell-...
hmakholm left over Monica's user avatar
0 votes
2 answers
767 views

How to set HOME env in batch file for program

I'm trying to change the HOME environment variable to point to the current directory /HOME for Emacs so it uses the .emacs file from that directory. This is what I have in my .bat file: set HOME = .\...
nathnolt's user avatar
  • 101
1 vote
1 answer
2k views

Mouse copy/paste in gnu screen stopped working

I'm working over ssh on a linux machine (RHEL 6.8) from MacOS (Yosemite) through iTerm2 (3.0.20161031-nightly). On the remote server, I work in screens (Screen version 4.00.03). Edit: everything ...
user1402596's user avatar
0 votes
1 answer
250 views

Editing emacs init.el does not take effect

I want emacs to store all my backup files in the directory ~/.save. I put the following code into my init.el file: (setq backup-directory-alist `(("." . "~/.saves"))) However, this change does not ...
LaPriWa's user avatar
  • 145
0 votes
1 answer
282 views

Mutt - composing HTML email

Ultimately this will come down to the editor; however, it seems appropriate to ask mutt users how they've handled this issue. I have a folder hook that sets my content_type to text/html when I switch ...
Kris's user avatar
  • 1
0 votes
1 answer
90 views

Vim equivalent of Emacs's C-x C-o (delete-blank-lines)?

What's the Vim equivalent of Emacs's C-x C-o (delete-blank-lines) function?
Geremia's user avatar
  • 556
2 votes
2 answers
218 views

Unable to Byte Compile Emacs Package in Mac OS

I am trying to enable predictive-mode in AUCTex. I have downloaded and added the below configuration to my .emacs file: ("~/path/predictive" points to the directory where I have put the package). (...
Leo-T's user avatar
  • 121
1 vote
1 answer
934 views

Running Emacs withing cygwin: charsets directory not found

I have installed cygwin with the all of the emacs packages (I think?). Whenever I try to open emacs within the cygwin terminal, I receive the message, Warning: arch-dependent data dir '/usr/libexec/...
guestnewuser's user avatar
5 votes
2 answers
3k views

Way too fast scrolling in Emacs on OSX

In GUI builds of emacs for OSX, the scrolling speed when using the trackpad in so fast that it's unusable. I already have the following lines in my init.el: (setq mouse-wheel-scroll-amount '(1 ((...
selfawaresoup's user avatar
1 vote
1 answer
60 views

Emacs opens file without case-sensitivity and renames it when saving?

So I encountered something strange. Say I have a file named lab01.cpp. I then open it using emacs Lab01.cpp, which will open the file. Then if I edit, save and exit, the file will be renamed to Lab01....
JobHunter69's user avatar
7 votes
1 answer
7k views

Compiling Emacs 25.1 on Ubuntu 16.04

I'm trying to compile the latest version of emacs on Ubuntu 16.04. After installing the libraries I could think of, the ./configure script outputs the following: Where should the build process find ...
tom4everitt's user avatar
0 votes
2 answers
87 views

What's the best way of creating documents with embedded objects?

I'm looking for a way of creating documents that allow me to embed multiple things. So far I'm aware of: Libre Office .odt Emacs orgmode .org LaTeX .tex HTML file .html PDF file .pdf I'm not sure ...
Rtsne42's user avatar
  • 263
0 votes
0 answers
1k views

How to increase font size in Emacs, running on Ubuntu BASH shell on Windows 10

After the "anniversary update" Windows 10 allows the user to run a Ubuntu based BASH shell from within Windows 10. I have installed emacs on the BASH shell using the apt-get install. When I open ...
Prasanna's user avatar
  • 4,074
2 votes
1 answer
226 views

Emacs config lisp code that changes electric-indent-mode before and after pasting from clipboard

Starting at Emacs 24.4 (I think), c-j and ret have been swapped, so indent is now called after ret.  And those indents in text mode are indent-relative, so, when you paste indented code, the code is ...
Pablo Marin-Garcia's user avatar
0 votes
0 answers
795 views

How to make emacs display both GBK and BIG5 encoding Chinese text correctly?

I am using Emacs 25.1 on x64 Windows 10, I want display Chinese plain text files encoded in BIG5 and GBK encoding as well as UTF, however I found characters in the BIG5 encoding files displayed as ...
TRX's user avatar
  • 180
0 votes
1 answer
682 views

How to force Emacs to reset indent?

I want emacs to automatically reset it's indentation level to 0 at one specific point in a file. For example: Because I have nested-nested-nested-.. namespaces, in the C++-Files I would like to not ...
towi's user avatar
  • 383
3 votes
1 answer
3k views

Changing Menu Bar Color of Emacs (GTK+3)

I want to change the menu bar color of my Emacs installation ( version 24.5.1 with GTK+3 and runs on Debian Testing with KDE desktop ). After browsing in the web, I know that the menu bar color cannot ...
zufall's user avatar
  • 33
0 votes
2 answers
450 views

How do I reverse the order of log entries in this file? (Vim for preference)

I've got a set of files that contain notes written in reverse order: ###### 27/07/2016-15:04:20 GMT+1: Really? More? ###### 27/07/2016-15:04:18 GMT+1: It happened again! ###### 27/07/2016-15:04:...
Joe's user avatar
  • 3,450
3 votes
0 answers
3k views

How to fix application showing generic app icon in OS X (Yosemite)?

This happens in one particular application (emacs for Mac) in a particular directory in my /Applications folder, for one particular account in my system. It used to show the correct icon before but ...
Psycho Punch's user avatar
3 votes
1 answer
4k views

How do I enable word wrap in Emacs using visual-line-mode?

I have (global-visual-line-mode t) enabled in .emacs. I'd like text to automatically wrap at column 70. These don't work: (setq-default fill-column 70) (add-hook 'text-mode-hook '(lambda() (turn-...
JonahHuron's user avatar
0 votes
0 answers
207 views

How to remap control key in emacs?

I want to keep control key for term under emacs. How can I rebind existing mappings to some other key (e.g. Right-CNTL)?
sevo's user avatar
  • 143
0 votes
1 answer
93 views

Why is there no appearance of a newer Emacs after installing it on my Mac?

I just installed emacs on my mac from this website: https://emacsformacosx.com/ After copying it to my Applications, I opened emacs and did M-x emacs-version. My old version was still shown (22.1.1).
JobHunter69's user avatar
5 votes
1 answer
5k views

How to remove incorrect password for file symmetrically encrypted with GPG

I used Emacs to encrypt a text file with a symmetric key. When decrypting the file, the program pinentry opens a window for password entry. I accidentally clicked the checkbox for "save in password ...
tmalsburg's user avatar
  • 151
0 votes
1 answer
106 views

What would happen if I create a .emacs file and edit it, even if I already have one?

I've spent a long time looking for my .emacs file and have yet to find it even after using the solution here: https://stackoverflow.com/questions/27869909/what-to-do-if-i-cannot-find-my-emacs-init-...
JobHunter69's user avatar
0 votes
0 answers
81 views

Install org module on XEmacs

I'm running Ubuntu 16.04. I installed XEmacs 21.4 (patch 22) I want to use org module BUT fail to install/configure it. In my case I don't use .emacs but rather I have ~/.xemacs/custom.el where I keep ...
susik's user avatar
  • 653
0 votes
0 answers
34 views

Type a ":" in Emacs minibuffer

I can't type a ":" in Emacs minubuffer, spacifically to enter /ssh:something, it hangs as soon as I type ":" (GNU Emacs 24.5.1, clean emacs -q). How can I enter a ":" in Emacs minibuffer?
yPhil's user avatar
  • 2,541
2 votes
1 answer
864 views

emacs - show vertical scrollbar or indicator of position

I would like to show my position within a buffer on the left (or right) side of a buffer. For example, if my cursor is 75% of the way down a buffer, I would like to see an indicator 75% of the way ...
mark's user avatar
  • 739
17 votes
8 answers
9k views

Windows 10 linux bash shell ctrl+space doesn't set mark in Emacs

In Windows 10 I installed Subsystem for Linux Bash. But I have a problem with shortcut in Emacs Ctrl+space doesn't set mark point. What i tried and didn't help: I tried to uncheck "enable Ctrl key ...
Pawel Dubiel's user avatar
0 votes
0 answers
56 views

Gnus: How to fix 'Warning - invalid active <folder> <number> <number> y'

Something I've done but not yet identified has hosed my working-for-years Gnus<->offlineimap<->GMail setup. Gnus gives me a bunch of errors like: Warning - invalid active: [Gmail].Starred 26 2 ...
Phil Hudson's user avatar
9 votes
2 answers
5k views

Emacs commands to calculate sum, average, etc. of region

Suppose I have highlighted a region of text in a buffer. The region contains numbers separated by whitespace. E.g. 1 19 23 28 41 Is there some package with ready-made interactive commands that parse ...
Lassi's user avatar
  • 419
0 votes
0 answers
698 views

How to config Emacs to fit screen size on startup?

My Emacs often extends outside the visible range of a screen on startup, e.g. on a virtual machine, as shown below. This becomes a problem because the status line is invisible (and it's tedious to ask ...
tinlyx's user avatar
  • 1,500
0 votes
1 answer
374 views

regexp search and replace for bash variables

A number of my bash scripts need tidying up before sending them round. One of the thing I would like to do is to use curly braces for all variable names. So everywhere it says $PWD should be changed ...
alle_meije's user avatar
2 votes
1 answer
4k views

How to pass options to command using cygwin run.exe

I want to execute a bash command with my user environment, and I do not want to open a terminal windows on my Windows desktop. I tried: c:\cygwin64\bin\run.exe zsh -lic emacs And it opens a emacs ...
David S.'s user avatar
  • 926
2 votes
1 answer
270 views

How does emacs save files by default?

Usually, applications perform atomic saves either by renaming the old file and writing the new file in place, or by writing a temp file and then replacing the old file with the new temp file. Which of ...
new linux user's user avatar
0 votes
2 answers
709 views

conemu (windows terminal program): text not visible in emacs

I am running the most recent alpha build 160503 of the ConEmu terminal / console program on Windows 7. I start a console window running the cygwin bash shell. I can start "emacs -nw" (terminal-based,...
D Strozzi's user avatar
1 vote
0 answers
130 views

Agda input method, Σ ⇛ ⇒, and Latex export

I can use agda input method in emacs to type effortlessly a gazillion unicode character in my nice beamer presentation. Now I want to process it with latex and I apparently have to map each missing ...
nicolas's user avatar
  • 457
0 votes
0 answers
187 views

speedbar "display buffers" on startup

I would like to start the speedbar with the "Display Buffers" instead of "Display Files" option on startup. (setq speedbar-mode-hook (lambda () (interactive) (other-frame 0))) (when window-system ...
Peter Miehle's user avatar

1 2 3
4
5
34