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

  • SEARCH
  • Home
  • 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 8046715
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T05:52:49+00:00 2026-06-05T05:52:49+00:00

I am begining to develop my own Emacs environment, I have a custom init.el

  • 0

I am begining to develop my own Emacs environment, I have a custom init.el (as below) that loads libraries from my user directory and ignores the installed directories. I have not placed any of the Amusement or Mail lisp libraries in the User directory but they are still appearing in auto-complete lists. This is because they are being defined as auto-load functions. How do I prevent these auto-load functions from being created? I don’t want to individually remove each unwanted function as this is cumbersome and wasteful.

Help info on an unwanted function;

5x5 is an interactive autoloaded Lisp function.

It is bound to <menu-bar> <tools> <games> <5x5>.

my init.el;

(setq inhibit-defaul-init 1)

(setq load-path (list 
     (expand-file-name "~/.emacs.d/")
     (expand-file-name "~/.emacs.d/lisp/")
     (expand-file-name "~/.emacs.d/lisp/emacs-lisp/")
     (expand-file-name "~/.emacs.d/lisp/eshell/")
     (expand-file-name "~/.emacs.d/lisp/net/")
     (expand-file-name "~/.emacs.d/lisp/nxml")
     (expand-file-name "~/.emacs.d/lisp/org")        
     (expand-file-name "~/.emacs.d/lisp/term")
     (expand-file-name "~/.emacs.d/lisp/textmodes")
     (expand-file-name "~/.emacs.d/lisp/usrl")
     (expand-file-name "~/.emacs.d/lisp/")
    )
)
  • 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-05T05:52:51+00:00Added an answer on June 5, 2026 at 5:52 am

    You can unbind autoloaded functions in the same way that you can unbind normal functions, so you could effectively remove 5x5 and other unwanted autoloaded functions from the running system like this:

    (mapc
     (lambda (func) (fmakunbound func))
     '(5x5 5x5-crack-randomly 5x5-crack-mutating-current 5x5-crack-mutating-best 5x5-crack-xor-mutate 5x5-crack))
    

    For autoloaded variables, you would use makunbound instead of fmakunbound.

    To obtain a list of likely suspects, you could use

    • M-x find-library RET loaddefs RET
    • M-x occur RET ^(autoload RET

    The loadhist library might also be of interest.

    Edit:

    Actually, inspecting the autoload file seems like a fairly safe method of establishing whether or not you want to eliminate something. I believe this is only usable with functions, however; as far as I can see, other kinds of autoloaded objects are just defined immediately by loaddefs. You could make assumptions based on symbol-name, but I wouldn’t recommend it (but then I wouldn’t do any of this, so YMMV).

    (defvar my-unwanted-libraries
      '("5x5" "snake" "hanoi" "tetris")
      "Unbind all autoloaded functions for these libraries.")
    
    (defun my-unbind-unwanted-autoload-functions ()
      "Unbind all unwanted autoloaded functions."
      (interactive)
      (do-symbols (symbol)
        (let* ((function (and (fboundp symbol)
                              (symbol-function symbol)))
               (file (and function
                          (consp function)
                          (eq (car function) 'autoload)
                          (cadr function))))
          (when (and file (member file my-unwanted-libraries))
            (fmakunbound symbol)))))
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Begining with JSP and servlet development, I have some problems with a bodyless custom
I have to develop an application for windows that will enable controlling the mouse
im currently learning python (in the very begining), so I still have some doubts
I'm trying to cleanup some data, that has N digits in the begining of
the develop environment is vs2008, the language is c++, when I release the problem,at
I have HostGator Baby Shared Plan . I develop Drupal site on. everything was
I have a generic check that needs to be run on ca. 1000 objects.
I am beginning to develop a series of custom ATL ActiveX controls for a
I want to learn how to develop for iOS devices, but I don't have
I'm beginning to develop a JavaScript client SDK that adds an iFrame to the

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.