Browse Source

Updates to reflect non-GNU ELPA repo changes

George Jones 2 years ago
parent
commit
142408b32e
2 changed files with 54 additions and 33 deletions
  1. 18 33
      .emacs
  2. 36 0
      2022-01-15-migrating-to-non-GNU-ELPA.org

+ 18 - 33
.emacs

@@ -4,59 +4,45 @@
 
 (setq debug-on-error t) ;; uncomment when there are problems
 
-; https://stackoverflow.com/questions/10092322/how-to-automatically-install-emacs-packages-by-specifying-a-list-of-package-name
-
-
 (require 'package)
 
-; Where do we get packages?
+; Add MELPA (in addditon  to ELPA and non-GNU ELPA)
 (add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/") t)
-(add-to-list 'package-archives '("org" . "http://orgmode.org/elpa/") t)
 
-; which packages do we want
-(setq package-list '(better-shell cyberpunk-theme guide-key helm helm-core magit  notmuch ob-ipython  org-plus-contrib htmlize password-store popup popwin twittering-mode which-key with-editor xah-fly-keys))
 
-; Old (pre 2019-10-26) list
-;(setq package-list '(annotate better-shell cyberpunk-theme guide-key helm helm-core magit git-commit ql magit-popup notmuch ob-ipython dash-functional org-plus-contrib org2blog htmlize metaweblog ox-hugo org password-store f dash popup popwin s treepy twittering-mode which-key with-editor async xah-fly-keys xah-lookup xml-rpc))
+;; Packages installed as of 2022-01-15
+;;
+  ;; cyberpunk-theme                1.22           installed             Cyberpunk Color Theme
+  ;; guide-key                      20150108.635   installed             Guide the following key bindings automatically and dynamically
+  ;; helm                           20220114.1641  installed             Helm is an Emacs incremental and narrowing framework
+  ;; htmlize                        1.57           installed             Convert buffer text and decorations to HTML.
+  ;; magit                          3.3.0          installed             A Git porcelain inside Emacs
+  ;; notmuch                        20220114.2112  installed             run notmuch within emacs
+  ;; org-contrib                    0.3            installed             Unmaintained add-ons for Org-mode
+  ;; ox-hugo                        20220114.1941  installed             Hugo Markdown Back-End for Org Export Engine
+  ;; pass                           20210203.810   installed             Major mode for password-store.el
+  ;; password-store                 20200328.1214  installed             Password store (pass) support
+  ;; popwin                         20210215.1849  installed             Popup Window Manager
+  ;; which-key                      3.5.1          installed             Display available keybindings in popup
 
 
 ; activate all the packages (in particular autoloads)
 (package-initialize)
 
-; fetch the list of packages available
-(unless package-archive-contents
-  (package-refresh-contents))
-
-(setq load-prefer-newer t)
-
-; install the missing packages
-(dolist (package package-list)
-  (unless (package-installed-p package)
-    (package-install package)))
-
-
 ; Load xah-fly-keys early 'case its my fingers default now
+(add-to-list 'load-path "~/public/github/xah-fly-keys")
 (require 'xah-fly-keys)
 (xah-fly-keys-set-layout "qwerty")
 (xah-fly-keys 1)
 (global-set-key (kbd "<home>") 'xah-fly-insert-mode-activate)
 
-
-; Make sure we use the right version of org-mode:
+; The fun starts here !!!
+; pull in my main .org init file.
 ;
-; This has to happen here (not in george.org loaded later in this file)
-; to make sure we load the latest verson of org, not the system/default
-; version.
-
-
-;(add-to-list 'load-path "/home/gmj/public/ob-ipython")
-
-; pull in my main .org init file.  This is where most of the fun is.
 (org-babel-load-file "~/.emacs.d/george.org")
 
 ; because junk I don't want to share in git keeps showing up here
 (setq custom-file "~/elisp-secret/emacs-custom.el")
-
 ; Create empty custom file if it does not exist
 (when (not (file-exists-p custom-file))
   (with-temp-buffer (write-file custom-file)))
@@ -65,4 +51,3 @@
 (put 'downcase-region 'disabled nil)
 
 (message "init.el finished.")
-

+ 36 - 0
2022-01-15-migrating-to-non-GNU-ELPA.org

@@ -0,0 +1,36 @@
+These are notes on migraging to non-GNU ELPA
+
+* DONE remove all references to pacakge management in ~/.emacs
+- State "DONE"       from "DONE"       [2022-01-15 Sat 09:20]
+* DONE install my .emacs.d/ files
+* DONE fire up newly built-from-sources emacs and see what happens
+* DONE get latest xah fly keys and add it to load path               :manual:
+
+#+begin_example bash
+mkdir -p ~/public/gnu
+cd ~/public/gnu
+git clone https://github.com/xahlee/xah-fly-keys.git
+#+end_example
+
+Add to ~/.emacs
+#+begin_example
+(add-to-list 'load-path "~/public/github/xah-fly-keys")
+#+end_example
+
+* DONE Add missing packages that I use (see error messages)
+- State "DONE"       from "IN-PROGRESS" [2022-01-15 Sat 09:20]
+- State "IN-PROGRESS" from "TODO"       [2022-01-15 Sat 08:22]
+** which-key                                                           :elpa:
+   - M-X list-packages
+   - select which-key ("I")
+   - install ("x")
+** org-contrib                                                         :elpa:
+** xah-lookup                                                        :manual:
+   - copy from old install
+   - Add to ~/elisp-public
+** DONE Add MELPA to archives list
+#+begin_example elisp
+(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/") t)
+(package-initialize)
+#+end_example
+** ox-hugo                                                            :melpa: