Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [init-file]

for questions about initialization files `.emacs` or `init.el. DO NOT USE this tag if you assume answers require tweaking initialization files because many solutions do not involve directly manipulating initialization files.

5
votes
0answers
140 views

Stopping pdf-tools from resetting to the beginning of an open PDF when I eval-buffer my config file

I'm using pdf-tools to read PDFs in Emacs, and am pretty happy so far. However, I've found when I modify, and then eval-buffer my configuration file, the PDFs I opened earlier with pdf-tools get put ...
4
votes
0answers
226 views

In Emacs, how do you force using a fallback font?

Font and encoding (in a broad sense, internationalization) are causing problems in many software scenarios, like web browser and editor. The Unicode U+201C and U+201D are double quotation marks. ...
4
votes
0answers
91 views

Get describe-key links to bring me to org-mode config files, not .el config files?

For my Emacs configuration, I use a literate programming setup. My config files are in org-mode format, and my init.el file consists mostly of org-babel lines like (org-babel-load-file "~/emacs/...
3
votes
0answers
421 views

error autoloading failed to define function when loading custom file

I recently decided rewrite my emacs configuration. I want to load my custom org configuration only in the case when I am opening a *.org file. Considering a minimalistic configuration of init.el (use-...
3
votes
0answers
62 views

Highlighting the changed line in the source file in the resulting pdf using auctex and pdf-tools?

Is it possible to highlight the changed line in the resulting pdf using auctex and pdf-tools. I have this feature enabled in Skim with the following lines in my setup. (add-hook 'LaTeX-mode-hook (...
3
votes
0answers
116 views

Profiling org-mode init file

My initialization file is organized in org-mode with src snippets. Is there a way I can profile it to see which snippets take the most time to evaluate? When my initialization file was in Elisp, I was ...
2
votes
0answers
68 views

How to increase the number of recent file listings in helm-mini?

Is there a way to configure the number of recent files that will be in the Recentf section of a helm-mini buffer?
2
votes
0answers
131 views

fill-column-indicator mode doesn't show a straight vertical line

OS windows7 64bit | GNU emacs 24.3.1
2
votes
0answers
465 views

init error: file missing - cl-generic after any time I edit settings.org file

I am using org mode to organize my various Emacs settings. Within my init.el file I just have (taking out initial comments): ;;; Code: (package-initialize) (eval-when-compile (require 'use-package))...
1
vote
0answers
30 views

Automatically download external packages

How can I configure my init.el download packages that are not in (M)Elpa and install them automatically (if not already installed)? Something like doing it with wget or with git (as you do in vim) ...
1
vote
0answers
38 views

Not successful to enter mmm-jinja2 mode after installation using MELPA

So what I have tried is to first install the package by using MELPA: M-x package-install RET mmm-jinja2 I looked up where the package have been installed and found it to be at "~/.emacs.d/elpa/mmm-...
1
vote
0answers
42 views

Open new frame when switching between projects in projectile

Regularly I am working in several projects at the same time, projectile has been great for helping me with all the mess, but now, I would like to open a different frame per project, i.e., If I switch ...
1
vote
0answers
97 views

Package init and refresh problems

Due to unknown reason(s), the package manager in my Emacs 25.3 cannot refresh properly anymore: whenever I try to do M-x list-packages it throws an error: error in process filter: package-read-...
1
vote
0answers
23 views

ESS folding for R6 classes

What is the proper way to install, configure and activate folding of R script files? I followed emacswiki.org/emacs/FoldingMode but it doesn't seems to work. I installed folding.el to .emacs/lisp/. ...
1
vote
0answers
115 views

Using Ubuntu Emacs init file on Windows; possible multiple issues

I've seen Manage same init file for Linux and Windows, but it is not quite what I want. Bear with the description of issues and my attempts for resolution. I recently installed Emacs on Windows using ...
1
vote
0answers
61 views

Problem evaluating a `sage-shell-mode` function through `ob-sagemath`

I'm trying to use sage-math within an org-mode file. So far I've been able to configure the sage-shell-mode package (I'm impressed that sagemath can be installed in Debian using the package manager), ...
1
vote
0answers
77 views

Emacs really laggy on prog-mode

I noticed Emacs was really laggy on any mode derived from prog-mode two days ago. Before that, everything was fine. I can navigate on a 1000+ lines org-mode file without problem, but I can't even type ...
1
vote
0answers
119 views

osx - disable left option/command key, enable right option

I'm learning Emacs. On my Macbook, I have in keyboard settings: Capslock and Ctrl key swapped Option and Command key swapped Emacs commands like ctrl-r, ctrl-s work fine for me (obviously I use them ...
1
vote
0answers
285 views

Init using org-babel-tangle with Emacs Prelude

Trying to convert my personal configuration for Emacs Prelude to use an org-based config. Looked around for a couple of days on this site, github and elsewhere but have not found a way to get org-...
1
vote
0answers
53 views

Unable to tweak theme settings unless I start a new session

I have this code in my init.el file, mainly to apply the theme correctly when running emacs server: ;; This will make sure the theme loads well in emacs daemon (setq myGraphicModeHash (make-...
1
vote
0answers
293 views

Emacs c++ cannot use semantic and company-semantic to complete <string> library function

system: linux mint 18.1 Eamcs version: 25.2 semantic configuration: (global-semanticdb-minor-mode 1) (global-semantic-idle-scheduler-mode 1) (semantic-mode 1) create a cpp file and include vector,...
1
vote
0answers
141 views

Remove all custom key bindings/Reset key bindings to default

I don't know Lisp unfortunately. I have a friend, and I really liked his color scheme/default Emacs setup. However, I hate his hotkeys and I am used to the ones that come as default with Emacs. Is ...
1
vote
0answers
731 views

Company Mode in All Buffers

I'm trying to configure company-mode to activate in all buffers, with the appropriate back-ends depending on file-type. To that end, I've added the following to my init.el file. However, regardless of ...
1
vote
0answers
82 views

Does emacs have font-lock for constant values?

I am trying to customize a theme for myself, and now I am finding a way to change the highlight color of constant values such as 10 and 10.5677. For example, C mode in Vim highlights those constant ...
1
vote
0answers
454 views

TAB key is not working in my Org-mode table

I'm customizing my emacs using literate programming within org-mode. So far, It is going Ok, except that the org table align is not working properly if I press the <TAB> key... even worst, the ...
1
vote
0answers
29 views

problem with default font

I changed the default font of GNU emacs 24 to DejaVu and when I want to open a file I had this weird output(characters start appearing in small size)! Anyone knows how to solve this problem? I'm ...
1
vote
0answers
435 views

Why do “gnu” and “linux” `c-default-style` treat `c-basic-offset` differently?

These lines in my .emacs (setq-default indent-tabs-mode nil) (setq-default c-default-style "linux") (setq-default c-basic-offset 4) result in the following formatting of my c code (the c-basic-...
1
vote
0answers
2k views

Why am I getting an error while downloading Melpa packages in Emacs on Win7 OS

I am using Emacs on a Win7 machine. I have added the Melpa repo. in init.el. When I do M-x list-packages, I do get a buffer listing the packages from Melpa. But, when i try to download them, I get an ...
1
vote
0answers
408 views

What variables are needed in init file in order to run eww in emacs 24.5.1 for windows?

I'm using emacs on windows, output of "emacs-version" outputs GNU Emacs 24.5.1 (i686-pc-mingw32) of 2015-04-11 on LEG570 I added the missing libxml2.dll, (downloaded from ezwinports) in the emacs ...
1
vote
0answers
28 views

find-file opens file but buries its buffer when ECB is activated

I have a hook in my .emacs file that activates ECB when prog-mode entered: (add-hook 'prog-mode-hook 'ecb-activate) When I open the first file that starts a prog-mode, it seems to cause find-file* ...
1
vote
0answers
90 views

How can I prevent a setting in init.el from being overridden during startup?

Using emacs-mac-port, and I'm trying to configure horizontal scrolling with the trackpad. The following expressions work if I execute them manually via eval-last-sexp, (global-set-key [wheel-right] (...
1
vote
0answers
140 views

cannot open load file org2blog-autoloads

I'm using Ubuntu 14.04 lts and emacs 24.3.1 The error I get is Warning (initialization): An error occurred while loading `/home/guy/.emacs': Symbol's value as variable is void: org2blog-autoloads ...
1
vote
0answers
377 views

M-x eval-buffer my init.el file every time I start emacs

I am a total emacs newbie. I was following the Master Emacs in one year guide by Chen Bin. Following it, I cloned Steve Purcell's .emacs.d repo. Now the guide works just fine when I do M-x eval-...
1
vote
0answers
377 views

Do I still need to create a .emacs file?

I have both aquamacs and emacs (installed from brew) on my macbookpro. I intend to learn to use aquamacs as my main editor/IDE. When I use C-h v user-init-file in aquamacs, it reports the value as ~/....
1
vote
0answers
118 views

Using cmd-N and cmd-T with emacs

I am using a Mac 10.9.5 and Emacs 24.4, installed with macports and aliased as alias emacs /Applications/MacPorts/Emacs.app/Contents/MacOS/Emacs At the moment, when I have an emacs file open and I ...
0
votes
0answers
43 views

Emacs doesn't seem to read the path

So, I'm trying to use ack from emacs. I've tried setting the path correctly in the following manner (setenv "PATH" (concat "/home/davor/bin/bin:" (getenv "PATH"))) (setq exec-path (...
0
votes
0answers
42 views

Cannot enable visual line mode globally

I would like visual-line-mode to be always on. For this reason I put in the very end of my init.el file the following line of code (global-visual-line-mode 1) (as suggested here). Anyway, the above ...
0
votes
0answers
62 views

Kill *scratch* at startup not always works

I would like to avoid using buffer *scratch*, so I set up (kill-buffer "*scratch*") in my init.el but it doesn't always work (sometimes it kills the buffer, sometimes it doesn't).
0
votes
0answers
45 views

Using Emacs as a daemon (emacsclient) exhibiting weird behavior

Whenever I use Emacs as a daemon it seems like my init file isn't being fully loaded. My keybindings in particular are acting very odd. I use some unorthodox keybinds; for example: Ctrl+u = ...
0
votes
0answers
30 views

LSP with PHP not working

I am trying to setup php with lsp and can get it working. I followed what have been posted here: https://www.reddit.com/r/emacs/comments/7xz6bd/im_having_the_worst_time_trying_to_get_php/ Nothing ...
0
votes
0answers
61 views

full screen on windows 10

This gnu emacs 25.3.1 is installed on windows 10 pro laptop. I like it to open in full screen. Current windows Display settings: Change Size of Text, Apps and Other items: 125% Recommended ...
0
votes
0answers
115 views

Disabling recentf mode?

I try to disable this via (recentf-mode -1) (setq recentf-mode nil) ;; mysteriously switches to t after some time but it keeps automatically turning on after some time and is causing problems for ...
0
votes
0answers
41 views

Migrate my init.el to spacemacs

Running emacs 25.2.2. Currently I am trying out spacemacs, primarily because I found the keybindings more intuitive. I needed some stuff from my init.el to move to .spacemacs before I can start using ...
0
votes
0answers
113 views

No Such File or Directory, Global, Error with Company Mode

I'm currently following this guide to expanding my emacs configuration on my Mac OS X system. However, every time I (save-buffer) with C-x C-s, I get the following error message: apply: Searching ...
0
votes
0answers
27 views

How to enable SHIFT+TAB for multi line code region unindentation?

I have found this code which enables both TAB and SHIFT+TAB for code region indentation and unindentation. The problem is SHIFT+TAB doesn't work on multi line codes and also we have to place the ...
0
votes
0answers
17 views

why cant emacs fsharp mode display pop-up information nor execute interactively?

When I try to use fsharp to display type signatures and tooltips, the buffer tells me that File 'c:\user\path\[file_name]' not parsed. I've read that this is common when you are using fs files. In ...
0
votes
0answers
91 views

Changing font size in emacs-nox

This question comes out of the answer I posted to my previous question. Setting the font size to 10 in a terminal's preference solved the issue of the last row being black. But it introduces this ...
0
votes
0answers
144 views

Auctex not displaying pdf correctly using pdftools

I am using pdftools with AUCTEX so that I can display output within emacs. I am using a windows system with emacs 25.3. However after compilation I get the following: %PDF-1.5 % 3 0 obj << /...
0
votes
0answers
127 views

Not able to load a color theme from 'init.el' or using 'M-x color-theme-select'

I am trying to get emacs(emacs24) to load with another colortheme (looking to have a 'dark' theme). In my init.el file I have the lines: (eval-after-load "color-theme" '(progn (color-theme-...
0
votes
0answers
63 views

Error loading auctex on fresh emacs cygwin install

I have a fresh install on emacs on Cygwin, including the (Cygwin, not emacs) package emacs-auctex. My . emacs file is (load "auctex.el" nil t t) On opening a .tex file, I get the error File mode ...