Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7866997
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T00:35:19+00:00 2026-06-03T00:35:19+00:00

So in order to optimize emacs startup time I prefer to encapsualte all mods

  • 0

So in order to optimize emacs startup time I prefer to encapsualte all mods within a hook or an eval-after-load. So I figured out python, cpp and latex but am stuck with nXhtml. I tried the following:

(eval-after-load "HTML-mode"
'(progn
(load-file "~/.emacs.d/plugins/nxhtml/autostart.el")
))

Which doesn’t work at all.

The code :

(add-hook 'html-mode-hook (lambda()
(progn
  (load-file "~/.emacs.d/plugins/nxhtml/autostart.el")
)))

loads some parts of nXhtml but the nXhtml mode is not on (only SGML and AC) so scopes aren’t colored differently in my php sources or autocomplete/ bracket completion doesn’t work.

The only way it works properly is if I let it load on startup.

Looking at the trace , when nxhtml is loaded during startup it says :

“majmodpri-apply-priorities running … (done)”

However when the load is encapsulated by a n html-mode-hook or the eval-after-load the trace says:

“majmodpri-apply-priorities running … MU:majmodpri-check changing
majmodpri-apply-priorities: buffer=index.php, html-mode,nil =>
sgml-mode,nil majmodpri-apply-priorities running … (done)”

Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T00:35:20+00:00Added an answer on June 3, 2026 at 12:35 am

    I think nXhtml’s autostart file (which is all that you would be loading) is designed to be fairly minimal, so it might be the case that you can’t reduce it too much more without constraining some of its abilities?

    How long is it actually taking? It looks like there should be a “Nxml/Nxhtml Autostart.el loaded in %.1f seconds” message logged.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

order by in query is taking to much time in MySQL. SHOW PROFILES shows
Order deny,allow deny from all allow from xx.xx.x.xx RewriteRule . - [F] I have
In order to initialize all JTextfField s on a JPanel when users click a
Are there any techniques to optimize code in order to ensure lesser power consumption.Architecture
I am trying to optimize a sql query which is using order by clause.
I'm trying to optimize code that I have. In order to do that, I
I'm trying to optimize some bit packing and unpacking routines. In order to do
I'm writing a text box from scratch in order to optimize it for syntax
I'm trying to optimize my site, in order to do that I want to
I am trying to optimize my mysql table a little bit in order to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.