summaryrefslogtreecommitdiffstats
path: root/lisp/ravi-init-files.el
diff options
context:
space:
mode:
authorRavi R Kiran <aine.marina@gmail.com>2021-04-25 02:14:52 (GMT)
committerRavi R Kiran <aine.marina@gmail.com>2021-04-25 02:14:52 (GMT)
commitabdcacaa537af703462790de2ebef9ad1b8f1e56 (patch)
tree3bfba4bfda6cb901229b911786598a03031b8388 /lisp/ravi-init-files.el
parent3b46746a3c3c56a046919300bcb435994f5baccd (diff)
downloaddotemacs-abdcacaa537af703462790de2ebef9ad1b8f1e56.zip
dotemacs-abdcacaa537af703462790de2ebef9ad1b8f1e56.tar.gz
dotemacs-abdcacaa537af703462790de2ebef9ad1b8f1e56.tar.bz2
Handle simultaneous emacs invocations if init files are on NFS
Diffstat (limited to 'lisp/ravi-init-files.el')
-rw-r--r--lisp/ravi-init-files.el15
1 files changed, 7 insertions, 8 deletions
diff --git a/lisp/ravi-init-files.el b/lisp/ravi-init-files.el
index 8e4d0ca..d279176 100644
--- a/lisp/ravi-init-files.el
+++ b/lisp/ravi-init-files.el
@@ -24,7 +24,7 @@
;;; Code:
-(setq auto-save-list-file-prefix (ravi/emacs-file "past/auto-save-list/.saves-"))
+(setq auto-save-list-file-prefix (ravi/past-file "auto-save-list/.saves-"))
(setq delete-auto-save-files t)
(setq dired-listing-switches "-Flag")
(setq completion-ignored-extensions
@@ -56,12 +56,12 @@
(require 'saveplace)
(setq-default save-place t)
-(setq save-place-file (ravi/emacs-file "past/places"))
+(setq save-place-file (ravi/past-file "places"))
(use-package recentf
:init
(progn
- (setq recentf-save-file (ravi/emacs-file "past/recentf"))
+ (setq recentf-save-file (ravi/past-file "recentf"))
(setq recentf-max-saved-items 100) ;; just 20 is too recent
)
:config
@@ -118,13 +118,13 @@ not exist, it is not added to the filecache."
(progn
(add-to-list 'tramp-remote-path 'tramp-own-remote-path)
(setq tramp-use-ssh-controlmaster-options nil)
- (setq tramp-persistency-file-name (ravi/emacs-file "past/tramp"))))
+ (setq tramp-persistency-file-name (ravi/past-file "tramp"))))
;; Write backup files to own directory
-(make-directory (ravi/emacs-file "past/backups/") t)
+(make-directory (ravi/past-file "backups/") t)
(setq backup-by-copying t)
(setq backup-directory-alist
- `(("." . ,(ravi/emacs-file "past/backups/"))
+ `(("." . ,(ravi/past-file "backups/"))
(,tramp-file-name-regexp nil)))
;; Make backups of files, even when they're in version control
@@ -136,14 +136,13 @@ not exist, it is not added to the filecache."
(progn
(use-package pkg-info)
(setq projectile-known-projects-file
- (ravi/emacs-file "past/projectile-bookmarks.eld"))
+ (ravi/past-file "projectile-bookmarks.eld"))
)
:bind-keymap ("C-c p" . projectile-command-map)
:bind(("C-<f2>" . projectile-find-file-dwim))
:config
(progn
(projectile-global-mode)
- (add-to-list 'projectile-globally-ignored-directories ".cquery_cached_index")
(bind-key "C-<f2>" 'projectile-find-file-dwim)
(if (and (boundp 'ravi/use-helm-instead-of-ido) ravi/use-helm-instead-of-ido)