Skip to content

Commit

Permalink
(emacs) finally fix some tramp paths
Browse files Browse the repository at this point in the history
  • Loading branch information
fbegyn committed Feb 12, 2024
1 parent 73f24c8 commit 1771e76
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions users/francis/hm/configurations/emacs/base-init.el
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@
(require 'use-package)
(package-initialize)

;; nixos path adding
(add-to-list 'exec-path "/home/francis/.nix-profile/bin")
(add-to-list 'exec-path "/etc/profiles/per-user/francis/bin")
(add-to-list 'exec-path "/run/current-system/sw/bin")

;; emacs settings
(use-package emacs
:defer t
Expand All @@ -92,7 +97,7 @@
(setq make-backup-files nil
auto-save-default nil
create-lockfiles nil)

;; Follow symlinks
(setq vc-follow-symlinks t)
;; correct macos modifiers
Expand Down Expand Up @@ -407,17 +412,17 @@
(use-package deno-ts-mode
:ensure t)

(use-package tramp
:ensure t
:config ((setq tramp-default-method "sshx")
(add-to-list 'tramp-remote-path 'tramp-own-remote-path)
(setq tramp-shell-prompt-pattern "\\(?:^\\|\r\\)[^]#$%>\n]*#?[]#$%>].* *\\(^[\\[[0-9;]*[a-zA-Z] *\\)*")
(eval-after-load 'tramp-sh '(add-to-list 'tramp-remote-path "/run/current-system/sw/bin"))
(eval-after-load 'tramp '(setenv "SHELL" "/bin/sh"))
(add-to-list 'tramp-connection-properties
(list ".*" "locale" "LC_ALL=C")))
(require 'tramp)

(setq tramp-default-method "sshx")
(setq tramp-shell-prompt-pattern "\\(?:^\\|\r\\)[^]#$%>\n]*#?[]#$%>].* *\\(^[\\[[0-9;]*[a-zA-Z] *\\)*")
(add-to-list 'tramp-remote-path 'tramp-own-remote-path)
(add-to-list 'tramp-remote-path "/home/francis/.nix-profile/bin")
(add-to-list 'tramp-remote-path "/etc/profiles/per-user/francis/bin")
(add-to-list 'tramp-remote-path "/run/current-system/sw/bin")
(eval-after-load 'tramp-sh '(add-to-list 'tramp-remote-path "/run/current-system/sw/bin"))
(eval-after-load 'tramp '(setenv "SHELL" "/bin/sh"))
(add-to-list 'tramp-connection-properties
(list ".*" "locale" "LC_ALL=C"))
;; ----====-----
;; emacs config rework TODO ALL BELOW

Expand Down

0 comments on commit 1771e76

Please sign in to comment.