-
Notifications
You must be signed in to change notification settings - Fork 5
Change global-sops-mode
setup example
#8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Can you share your configuration even if just the use-package configuration? How were you testing to make sure sops was enabled? |
Sure, here's my emacs reload keybind setup and sops package configuration: (leader-keys
;; ...
"h r r" '((lambda () (interactive) (load-file user-init-file)))) :wk "Reload emacs config")))))
;; ...
(use-package sops)
(add-hook 'after-init-hook 'global-sops-mode) Enabling (use-package sops
:init
(global-sops-mode 1)) After restarting the emacs server, I pressed |
@tkerm94 what version of emacs and is this a custom config or doom or? |
Version is 29.4, configuration is custom with packages managed by nix. |
@tkerm94 Can you try to reproduce the problem with this config? https://gist.github.com/djgoku/abcec99bdca110c9c26fb6cb7f5cd049 I wasn't able to reproduce it https://github.com/getsops/sops/blob/main/example.yaml |
I wasn't able to reproduce this with this config either. Before I was using emacsclient with the emacs daemon running, now I tried to run emacs and it shows |
Have you tried |
When run with Debugger entered--Lisp error: (void-function global-sops-mode)
(global-sops-mode 1)
(condition-case err (global-sops-mode 1) ((debug error) (funcall use-package--warning25 :init err)))
(progn (condition-case err (global-sops-mode 1) ((debug error) (funcall use-package--warning25 :init err))) (if (not (require 'sops nil t)) (display-warning 'use-package (format "Cannot load %s" 'sops) :error)))
(condition-case err (progn (condition-case err (global-sops-mode 1) ((debug error) (funcall use-package--warning25 :init err))) (if (not (require 'sops nil t) Here's a small flake with the necessary packages and minimal emacs configuration: nix develop git+https://gist.github.com/tkerm94/9475a0615ca43c4d3967e597f52f3c74#not-working --no-write-lock-file Use |
Hi! I tried to enable
global-sops-mode
according to the example in the readme and it only worked after reloading the emacs configuration multiple times. Adding it toafter-init-hook
solved the problem.