rejeep / drag-stuff.el

Drag stuff around in Emacs
233 stars 12 forks source link

Auto-Install from the init.el file #33

Open sinekonata opened 4 years ago

sinekonata commented 4 years ago

Since you're using Melpa, is it possible to auto install this package if we have melpa-stable installed in our emacs.d/? Like :

(use-package drag-stuff)
(require 'drag-stuff)

Would that be enough?

(add-to-list 'load-path "/path/to/drag-stuff") <- this is what I want to avoid doing since I would have to manually create a folder in my .emacs.d/ right?

EDIT : I put this in my init.el and all went fine.

(use-package drag-stuff)
(require 'drag-stuff)
(drag-stuff-global-mode t)
(drag-stuff-define-keys)

I had a few warnings though :

Leaving directory ‘/home/manuel/.emacs.d/elpa/drag-stuff-20161108.749’

Compiling file /home/manuel/.emacs.d/elpa/drag-stuff-20161108.749/drag-stuff.el at Fri Feb 21 23:07:44 2020
Entering directory ‘/home/manuel/.emacs.d/elpa/drag-stuff-20161108.749/’
Warning (bytecomp): reference to free variable ‘evilp’
Warning (bytecomp): reference to free variable ‘evil-visual-mark’
Warning (bytecomp): reference to free variable ‘evilp’
Warning (bytecomp): reference to free variable ‘evil-visual-point’
Warning (bytecomp): reference to free variable ‘evilp’
Warning (bytecomp): reference to free variable ‘evil-visual-mark’
Warning (bytecomp): reference to free variable ‘evilp’
Warning (bytecomp): reference to free variable ‘evil-visual-point’
Warning (bytecomp): ‘goto-line’ is for interactive use only; use ‘forward-line’ instead.
Warning (bytecomp): reference to free variable ‘arg’
Warning (bytecomp): ‘goto-line’ is for interactive use only; use ‘forward-line’ instead.
Warning (bytecomp): reference to free variable ‘evilp’
Warning (bytecomp): the following functions are not known to be defined:
    evil-visual-state-p, longlines-mode, evil-visual-goto-end,
    evil-visual-type, evil-visual-make-selection, evil-visual-line,
    evil-exit-visual-state