mirror of
https://codeberg.org/scip/dot-emacs.git
synced 2025-12-17 04:20:57 +01:00
hopeless to use a newer version of tramp
Either I am unable to load it cleanly, because the system tramp still is loaded, at least parts of it. Using el-get leads to the weirdes errors. Using a manually built git version doesn't work either. It loads but then I can't ssh anywhere. So, I'll stick to the default and wait for the ubuntu emacs update.
This commit is contained in:
@@ -11,13 +11,20 @@
|
|||||||
;; (setq tramppkg (expand-file-name "el-get/tramp" tvd-config-dir))
|
;; (setq tramppkg (expand-file-name "el-get/tramp" tvd-config-dir))
|
||||||
|
|
||||||
;; doesnt work:
|
;; doesnt work:
|
||||||
|
;; FIXME: see current error
|
||||||
|
|
||||||
;; (el-get-bundle tramp
|
;; (el-get-bundle tramp
|
||||||
;; :type git
|
;; :type git
|
||||||
;; :url "https://git.savannah.gnu.org/git/tramp.git"
|
;; :url "https://git.savannah.gnu.org/git/tramp.git"
|
||||||
;; ;; tramp-loaddefs.el uses `tramp-verion' before it's defined,
|
;; ;; tramp-loaddefs.el uses `tramp-verion' before it's defined,
|
||||||
;; ;; work around this by loading trampver.el first.
|
;; ;; work around this by loading trampver.el first.
|
||||||
;; :autoloads ("trampver.el" "tramp-loaddefs.el")
|
;; :autoloads ("trampver.el" "tramp-loaddefs.el")
|
||||||
;; :checkout "ELPA-2.6.0.3")
|
;; :checkout "ELPA-2.6.0.3"
|
||||||
|
;; :build `(("make" "autoloads")))
|
||||||
|
|
||||||
|
;; Current error:
|
||||||
|
;; Error (el-get): while initializing tramp: Symbol’s function definition
|
||||||
|
;; is void: tramp-compat-rx [2 times]
|
||||||
|
|
||||||
;;; Tramp version fix
|
;;; Tramp version fix
|
||||||
;; for now I have to install tramp from elpa manually, because
|
;; for now I have to install tramp from elpa manually, because
|
||||||
@@ -28,16 +35,18 @@
|
|||||||
;; loading of system tramp and git tramp.
|
;; loading of system tramp and git tramp.
|
||||||
;;
|
;;
|
||||||
;; FIXME: find out how to force use-package to install and use elpa tramp!
|
;; FIXME: find out how to force use-package to install and use elpa tramp!
|
||||||
(setq tramppkg (expand-file-name "tramp-2.6.0.3" package-user-dir))
|
;; (setq tramppkg (expand-file-name "tramp-2.6.0.3" package-user-dir))
|
||||||
|
;;; (setq tramppkg (expand-file-name "tramp" tvd-sitelisp-dir))
|
||||||
|
|
||||||
|
;; (message (format "tramp: installed: %s" (package-installed-p 'tramp)))
|
||||||
|
|
||||||
(use-package tramp
|
(use-package tramp
|
||||||
:load-path tramppkg
|
;;:load-path tramppkg
|
||||||
:ensure t
|
:ensure nil
|
||||||
:config
|
:config
|
||||||
(setq tramp-default-method "ssh"
|
(setq tramp-default-method "ssh"
|
||||||
tramp-default-user nil
|
tramp-default-user nil
|
||||||
tramp-verbose 9
|
;;tramp-verbose 9
|
||||||
ido-enable-tramp-completion t
|
ido-enable-tramp-completion t))
|
||||||
))
|
|
||||||
|
|
||||||
;; see also backup section in system.el
|
;; see also backup section in system.el
|
||||||
|
|||||||
10
init.el
10
init.el
@@ -12,7 +12,7 @@
|
|||||||
(scroll-bar-mode 0)
|
(scroll-bar-mode 0)
|
||||||
|
|
||||||
;; needs to be disabled to be able to load it from elpa
|
;; needs to be disabled to be able to load it from elpa
|
||||||
(setq tramp-mode nil)
|
;; (setq tramp-mode nil)
|
||||||
|
|
||||||
;;; ** stay silent on startup
|
;;; ** stay silent on startup
|
||||||
(setq initial-scratch-message "")
|
(setq initial-scratch-message "")
|
||||||
@@ -38,6 +38,7 @@
|
|||||||
|
|
||||||
;;; ~/.emacs-init.d/init/ contains the rest of the init files
|
;;; ~/.emacs-init.d/init/ contains the rest of the init files
|
||||||
(setq tvd-init-dir (expand-file-name "init" tvd-config-dir))
|
(setq tvd-init-dir (expand-file-name "init" tvd-config-dir))
|
||||||
|
(setq tvd-sitelisp-dir (expand-file-name "site-lisp" tvd-config-dir))
|
||||||
|
|
||||||
;;; initialize package manager
|
;;; initialize package manager
|
||||||
(require 'package)
|
(require 'package)
|
||||||
@@ -50,10 +51,17 @@
|
|||||||
(add-to-list 'package-archives '("gnu" . "https://elpa.gnu.org/packages/"))
|
(add-to-list 'package-archives '("gnu" . "https://elpa.gnu.org/packages/"))
|
||||||
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))
|
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))
|
||||||
|
|
||||||
|
;; (setq package-archives
|
||||||
|
;; '(("gnu" . "https://elpa.gnu.org/packages/")
|
||||||
|
;; ("gnu-devel" . "https://elpa.gnu.org/devel/")
|
||||||
|
;; ("nongnu" . "https://elpa.nongnu.org/nongnu/")
|
||||||
|
;; ("melpa" . "https://melpa.org/packages/")))
|
||||||
|
|
||||||
(package-initialize)
|
(package-initialize)
|
||||||
|
|
||||||
;; load'em
|
;; load'em
|
||||||
(sanityinc/add-subdirs-to-load-path package-user-dir)
|
(sanityinc/add-subdirs-to-load-path package-user-dir)
|
||||||
|
(sanityinc/add-subdirs-to-load-path tvd-sitelisp-dir)
|
||||||
|
|
||||||
;;; dont mess around
|
;;; dont mess around
|
||||||
(setq package-enable-at-startup nil)
|
(setq package-enable-at-startup nil)
|
||||||
|
|||||||
Reference in New Issue
Block a user