branch: elpa/nix-mode
commit 14322f186fc2a36bfb7d5351bc80e24c50cf6e3e
Author: Matthew Bauer <[email protected]>
Commit: Matthew Bauer <[email protected]>
Use locate-library instead of find-library
find-library opens a new buffer
---
nix-mode.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/nix-mode.el b/nix-mode.el
index 8b56aba274..c3463b72b4 100644
--- a/nix-mode.el
+++ b/nix-mode.el
@@ -462,8 +462,8 @@ STRING-TYPE type of string based off of Emacs syntax table
types"
(nix-create-menu)
;; TODO: find a better way to load this
-(when (find-library "company") (require 'nix-company nil 'noerror))
-(when (find-library "mmm-mode") (require 'nix-mode-mmm nil 'noerror))
+(when (locate-library "company") (require 'nix-company nil 'noerror))
+(when (locate-library "mmm-mode") (require 'nix-mode-mmm nil 'noerror))
;;;###autoload
(defun nix-build (&optional attr dir)