Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

emacs-overlay, site-lisp, package-directory-list #358

Open
permezel opened this issue Sep 23, 2023 · 0 comments
Open

emacs-overlay, site-lisp, package-directory-list #358

permezel opened this issue Sep 23, 2023 · 0 comments

Comments

@permezel
Copy link

Hi, New to NixOs. Been trying to use the emacs-overlay to install emacs and install some elpa packages.
When I arrange for emacs-pgtk, emacs-30.0.50 is installed, but no site-lisp/elpa dir is made available.

There is an attempt to make site-lisp/elpa available:

package-directory-list
"/nix/store/rcvqqvkswpl9ph6ssv8i00vg5b0ps85l-emacs-pgtk-20230918.0/share/emacs/30.0.50/site-lisp/elpa"
"/nix/store/rcvqqvkswpl9ph6ssv8i00vg5b0ps85l-emacs-pgtk-20230918.0/share/emacs/site-lisp/elpa"

Neither of these directories exists. If I poke about in /nix/store I see there is a

/nix/store/r07c3ib9wwwpkgx2cpb3fk61wisgxxql-emacs-packages-deps:
total 0
0 dr-xr-xr-x 1 root root 272 Jan  1  1970 bin
0 dr-xr-xr-x 1 root root  24 Jan  1  1970 lib
0 dr-xr-xr-x 1 root root  10 Jan  1  1970 share

which would probably work if it was in the package-directory-list, as follows:

Here is the emacs-packages-deps which has what I believe I need:

/nix/store/r07c3ib9wwwpkgx2cpb3fk61wisgxxql-emacs-packages-deps/share/emacs/site-lisp/elpa:
ace-window-20220911.358      elpy-20230803.1455                   let-alist-1.0.6               pfuture-20220913.1401             toml-mode-20161107.1800
anki-editor-20190922.1223    emacsql-20230417.1448                lsp-docker-20230824.947       pkg-info-20150517.1143            transient-20230915.1911
anzu-20211002.2255           epl-20180205.2049                    lsp-ivy-20220831.1823         popwin-20210215.1849              treemacs-20230912.1707
avy-20230420.404             exec-path-from-shell-20230804.645    lsp-mode-20230914.1237        posframe-20230714.227             use-package-20230426.2324
bind-key-20230203.2004       f-20230823.1159                      lsp-treemacs-20230811.611     project-0.10.0                    vertico-20230912.939
bui-20210108.1141            flycheck-20230813.620                lsp-ui-20230811.552           pythonic-20230821.1733            vterm-20230417.424
cfrs-20220129.1149           flycheck-ledger-20200304.2204        lv-20200507.1518              pyvenv-20211014.707               which-key-20230905.2128
company-20230703.2021        git-commit-20230911.2217             magit-20230914.1251           rainbow-delimiters-20210515.1254  with-editor-20230917.958
compat-29.1.4.2              google-this-20170810.1215            magit-section-20230909.1052   rainbow-mode-1.0.6                xref-1.6.3
conda-20230620.1745          go-translate-20230503.303            marginalia-20230910.739       request-20230127.417              xterm-color-20230321.3
consult-20230914.1545        highlight-indentation-20210221.1418  markdown-mode-20230830.1338   rustic-20230130.912               yaml-20230907.1302
counsel-20230619.1623        ht-20230703.558                      nix-mode-20230421.2036        rust-mode-20230805.1558           yasnippet-20200604.246
counsel-etags-20230808.1227  hydra-20220910.1206                  orderless-20230802.218        rust-playground-20200116.1043
dap-mode-20230918.1618       ivy-20230714.751                     org-9.6.9                     s-20220902.1511
dash-20230714.723            kanji-mode-20160826.1139             org-roam-20230307.1721        spinner-1.7.4
eldoc-1.14.0                 ledger-mode-20230810.1707            osx-dictionary-20220801.1542  swiper-20230410.1815

It looks as if this should be the site-lisp. I was wondering where my default.el was being staged.

% ls -l /nix/store/r07c3ib9wwwpkgx2cpb3fk61wisgxxql-emacs-packages-deps/share/emacs/site-lisp
total 52
dr-xr-xr-x 1 root root   194 Jan  1  1970 cask
lrwxrwxrwx 3 root root   106 Jan  1  1970 default-autoloads.el -> /nix/store/lfcn53hka4x47j4vz0gyp5n7wwpf41z9-emacs-default-0.1.0/share/emacs/site-lisp/default-autoloads.el
lrwxrwxrwx 3 root root    96 Jan  1  1970 default.el -> /nix/store/lfcn53hka4x47j4vz0gyp5n7wwpf41z9-emacs-default-0.1.0/share/emacs/site-lisp/default.el
lrwxrwxrwx 3 root root    97 Jan  1  1970 default.elc -> /nix/store/lfcn53hka4x47j4vz0gyp5n7wwpf41z9-emacs-default-0.1.0/share/emacs/site-lisp/default.elc
dr-xr-xr-x 1 root root  3188 Jan  1  1970 elpa
-r--r--r-- 2 root root   598 Jan  1  1970 site-start.el
-r--r--r-- 2 root root   726 Jan  1  1970 site-start.elc
-r--r--r-- 2 root root 12808 Jan  1  1970 subdirs.el
-r--r--r-- 2 root root 12910 Jan  1  1970 subdirs.elc
 1970 subdirs.elc

Every time I delete my ~/.config/emacs/elpa dir and re-start emacs, I just rebuild everything back into ~/.config/emacs/elpa and ignore the site-lisp/elpa ones, due to the package-directory-list not including the correct path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant