mirror of
https://github.com/larstvei/dot-emacs.git
synced 2024-11-26 07:28:31 +00:00
fixing merge conflict?
This commit is contained in:
parent
d1b0b39e70
commit
67d780f9af
6
init.el
6
init.el
@ -56,16 +56,10 @@ PACKAGE is installed and the current version is deleted."
|
|||||||
(<= days-between-updates
|
(<= days-between-updates
|
||||||
(days-between
|
(days-between
|
||||||
(current-time-string)
|
(current-time-string)
|
||||||
<<<<<<< HEAD
|
|
||||||
(buffer-substring-no-properties start end))))
|
(buffer-substring-no-properties start end))))
|
||||||
;; Remember to update the time-stamp.
|
;; Remember to update the time-stamp.
|
||||||
(when do-package-update-on-init
|
(when do-package-update-on-init
|
||||||
(time-stamp))))))
|
(time-stamp))))))
|
||||||
=======
|
|
||||||
(buffer-substring-no-properties start end)))))))
|
|
||||||
;; Remember to update the time-stamp.
|
|
||||||
(time-stamp))
|
|
||||||
>>>>>>> 4bf07b95098fd9e26f03b2217dc256200c136488
|
|
||||||
|
|
||||||
(when do-package-update-on-init
|
(when do-package-update-on-init
|
||||||
(package-refresh-contents))
|
(package-refresh-contents))
|
||||||
|
14
init.org
14
init.org
@ -94,20 +94,12 @@
|
|||||||
(defvar do-package-update-on-init t)
|
(defvar do-package-update-on-init t)
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
The tricky part is figuring out when the last time the Emacs was updated!
|
The tricky part is figuring out when the last time the Emacs was updated!
|
||||||
Here is a hacky way of doing it, using [[http://www.gnu.org/software/emacs/manual/html_node/emacs/Time-Stamps.html][time-stamps]]. By adding a
|
Here is a hacky way of doing it, using [[http://www.gnu.org/software/emacs/manual/html_node/emacs/Time-Stamps.html][time-stamps]]. By adding a
|
||||||
time-stamp to the init file, we can search for it and determine wither or
|
time-stamp to the init file, we can search for it and determine wither or
|
||||||
not to do an update. After that we must run the =time-stamp=-function to
|
not to do an update. After that we must run the =time-stamp=-function to
|
||||||
update the time-stamp. Note that if there is no time-stamp in the
|
update the time-stamp. Note that if there is no time-stamp in the
|
||||||
init-file then packages will be updated every time you start Emacs.
|
init-file then packages will be updated every time you start Emacs.
|
||||||
=======
|
|
||||||
The tricky part is figuring out when the last time the Emacs was opened!
|
|
||||||
Here is a hacky way of doing it, using [[http://www.gnu.org/software/emacs/manual/html_node/emacs/Time-Stamps.html][time-stamps]]. By adding a
|
|
||||||
time-stamp to the init file, we can search for it and determine wither or
|
|
||||||
not to do an update. After that we must run the =time-stamp=-function to
|
|
||||||
update the time-stamp.
|
|
||||||
>>>>>>> 4bf07b95098fd9e26f03b2217dc256200c136488
|
|
||||||
|
|
||||||
#+BEGIN_SRC emacs-lisp :tangle yes
|
#+BEGIN_SRC emacs-lisp :tangle yes
|
||||||
(require 'time-stamp)
|
(require 'time-stamp)
|
||||||
@ -128,16 +120,10 @@
|
|||||||
(<= days-between-updates
|
(<= days-between-updates
|
||||||
(days-between
|
(days-between
|
||||||
(current-time-string)
|
(current-time-string)
|
||||||
<<<<<<< HEAD
|
|
||||||
(buffer-substring-no-properties start end))))
|
(buffer-substring-no-properties start end))))
|
||||||
;; Remember to update the time-stamp.
|
;; Remember to update the time-stamp.
|
||||||
(when do-package-update-on-init
|
(when do-package-update-on-init
|
||||||
(time-stamp))))))
|
(time-stamp))))))
|
||||||
=======
|
|
||||||
(buffer-substring-no-properties start end)))))))
|
|
||||||
;; Remember to update the time-stamp.
|
|
||||||
(time-stamp))
|
|
||||||
>>>>>>> 4bf07b95098fd9e26f03b2217dc256200c136488
|
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
Now we can use the function above to make sure packages are installed and
|
Now we can use the function above to make sure packages are installed and
|
||||||
|
Loading…
Reference in New Issue
Block a user