Questions tagged [optimization]

6 questions
5
votes
2 answers

Let-bind a variable while font-locking

I am writing a font-lock rule that calls a function to decide what face to apply to a symbol. Here's a simplified version: ("\\(?1:\\s_+\\)" (1 (the-function 1))) The problem is that this function needs to generate some data that is just a little…
Malabarba
  • 22,878
  • 6
  • 78
  • 163
3
votes
1 answer

How can I speed up individual commands?

When I call commands such as helm-apropos and custom Org agendas there is often a noticeable delay between the key sequence and the results presented. How can I speed up these commands to respond instantly to being called? I'm most interested in…
Conor
  • 475
  • 3
  • 11
2
votes
2 answers

What could cause org agenda to take very long to start up?

In my current Emacs setup the org agenda takes a ridiculous amount of time to start up, up to 2 minutes. It happens both on Ubuntu and MacOS. Version information: Emacs: GNU Emacs 27.0.50 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.18.9) of…
xji
  • 2,545
  • 17
  • 36
1
vote
2 answers

speed up sml-modeline, is this possible?

I really like the package sml-modeline (it is available on melpa): https://melpa.org/#/sml-modeline With it I replaced my vertical scrollbars. But when opening large text files like this Raspbian-Package-List (warning: 38MB download) then Emacs gets…
jue
  • 4,476
  • 8
  • 20
0
votes
1 answer

Effective concatenation

How can I concatenate two sequences of lists (either lists of lists or vectors of lists) in constant time (independent of their size)?
JAre
  • 175
  • 5
0
votes
1 answer

Best pratice advices for abbrev vs. completion vs. snippets

I am not sure if this is really a proper question but I am interested in having some opinions about the most efficient usage of Emacs' abbreviations features (abbrev/dabbrev) in combination with auto-completion/company and/or yasnippets. At the…