diff options
author | Julian T <julian@jtle.dk> | 2022-11-10 09:09:54 +0100 |
---|---|---|
committer | Julian T <julian@jtle.dk> | 2022-11-10 09:10:25 +0100 |
commit | d1ec4b3494274dcb7e1d9594cbb8d6ccd8bd0e63 (patch) | |
tree | ab0710ea83e212d099df8f0c166a6991ee31036b | |
parent | 9e96a8789b2d165d484103e36faec5ab169a468b (diff) |
Emacs and fix bug in apply
-rw-r--r-- | apply/state.py | 2 | ||||
-rw-r--r-- | emacs/.emacs | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/apply/state.py b/apply/state.py index 12440a6..2e9205c 100644 --- a/apply/state.py +++ b/apply/state.py @@ -58,6 +58,8 @@ class FileState(Enum): dest = Path(os.readlink(str(path))) if Path.cwd() in dest.parents: return FileState.create_owned(dest) + else: + return FileState.Used if not path.exists(): return FileState.Unused diff --git a/emacs/.emacs b/emacs/.emacs index df93c8f..c15ff3d 100644 --- a/emacs/.emacs +++ b/emacs/.emacs @@ -1,13 +1,13 @@ (require 'package) (add-to-list 'package-archives - '("melpa" . "https://melpa.org/packages")) + '("melpa" . "https://melpa.org/packages/")) (package-initialize) ; (package-refresh-contents) (mapcar (lambda (p) (unless (package-installed-p p) (package-install p)) - ) (list 'magit 'undo-tree 'evil 'haskell-mode 'bbdb 'company)) + ) (list 'magit 'undo-tree 'haskell-mode 'evil 'bbdb 'company)) (setq evil-want-C-u-scroll t) (require 'evil) |