Most Popular

1500 questions
11
votes
1 answer

Stop emacs asking if a theme is safe

I set my theme with load-theme in a use-package macro loaded at startup. The theme has also been installed with use-package, from the repository. At each start emacs asks me if I really want to load the theme in case it's not safe, how can I tell…
11
votes
3 answers

fill-paragraph marks file as changed, even if it didn't do anything

Whenever I call fill-paragraph, the buffer is always marked as modified, even if the command had no effect (i.e. if the paragraph was already filled). It also creates an empty undoable action (easily detected with undo-tree-mode). Other commands…
Lily Chung
  • 375
  • 1
  • 8
11
votes
1 answer

How to communicate package changes to repository users?

I have a package for interacting with GRASS GIS processes, available on MELPA. The rate of development and number of users are both quite low, so there's no need for a mailing list or any formal communications with my users. However, I've just…
Tyler
  • 21,719
  • 1
  • 52
  • 92
11
votes
1 answer

Best company-backends lists

I know this isn't the best type of question for stack... but I can't think of another place where it might get enough exposure. So I really like company-mode, but sometimes it's annoying to have to manually switch to the next backend…
aiguofer
  • 588
  • 3
  • 14
11
votes
1 answer

Emacs desktop-save-mode - only save desktop when previous desktop was fully restored

I have the following in my .emacs: (desktop-save-mode 1) (setq desktop-restore-eager 10) (setq desktop-save t) Often I have a lot of buffers open (100 or so), then this really helps - as emacs is loading buffers only when not beeing busy with…
Christian Herenz
  • 365
  • 2
  • 14
11
votes
2 answers

Colors for different priorities in Org mode

I have configured Org mode with a face attribute for priorities with these lines in my init.el: (set-face-attribute 'org-priority nil :foreground "aquamarine1" :background "black" :inherit…
nephewtom
  • 2,219
  • 17
  • 29
11
votes
1 answer

Simple request.el usage

My embarrassingly easy question is the following: Why does the following code works: (require 'request) (defun geocoder () (request "http://rpc.geocoder.us/service/csv" ;;; **Hardcoded parameter!** :params '(("address" . "1600…
baol
  • 231
  • 1
  • 8
11
votes
1 answer

Cocoa Emacs 24.5 Font Issues (Inconsolata-dz)

I am trying to set [Inconsolata-dz][1] as my default font to Emacs. Regular Inconsolata works fine, but the dz version is not working properly. Most functions I use keep throwing this error (followed all the instructions online on how to set Emacs…
darksky
  • 275
  • 1
  • 7
11
votes
3 answers

How to setup a private package repository?

I've written several packages for GNU Emacs, but they are useless outside of my company's environment. I want to be able to share the packages with other developers from my company. I also want the packages to be easily discoverable via…
roman-kashitsyn
  • 213
  • 1
  • 6
11
votes
3 answers

Auto enable minor modes in fundamental-mode

By design, the fundamental-mode is bare bones as other major modes are supposed to derive from this one. From the info page (elisp) Major Modes, we have: This is the major mode command for Fundamental mode. Unlike other mode commands, it…
Kaushal Modi
  • 25,203
  • 3
  • 74
  • 179
11
votes
2 answers

How can I get a custom org drawer to open/close?

My drawers don't seem to collapse with TAB. I've even tried the canonical example: * This is a headline Still outside the drawer :DRAWERNAME: This is inside the drawer. :END: After the drawer. When I place the cursor on the line…
11
votes
1 answer

Configuring Emacs and especially undo-tree-mode for tiling window managers

I want to use Emacs in a frame-oriented fashion and let my tiling window manager handle buffer organization. For example, following this tutorial. By default, Emacs packages such as undo-tree-mode seem to be dependent on windows to display the…
wdkrnls
  • 3,657
  • 2
  • 27
  • 46
11
votes
3 answers

TRAMP is unbearably slow (OSX, ssh)

I have always found TRAMP to be crazy slow (5+ secs to fetch a directory listing) so I've avoided it for years. Time to figure out what is going on. I'm always connecting via ssh, using declarations in ~/.ssh/config. The connections are fine, I've…
jmay
  • 363
  • 2
  • 9
11
votes
3 answers

Emacs function to convert an arbitrary ORG PROPERTY into an arbitrary string (namely, a LaTeX label)?

I have many documents as org-files which have a CUSTOM_LABEL property, like * Introduction :PROPERTIES: :CUSTOM_LABEL: AP 1 :END: In this case, the files need to be exported as LaTeX, translating each CUSTOM_LABEL as a \label{marker}. The…
gsl
  • 1,742
  • 17
  • 34
11
votes
2 answers

How do I write a simple `completion-at-point-functions` function?

I'm considering writing a major mode for editing Magic: the Gathering decks. Most of it seems pretty straightforward but I have one question. There are about 15 000 unique Magic cards available (cards with unique names that is). I would like to be…
Mattias Bengtsson
  • 1,271
  • 1
  • 11
  • 18