This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-04-12
Channels
- # bangalore-clj (4)
- # beginners (77)
- # boot (71)
- # cider (10)
- # clara (1)
- # cljs-dev (52)
- # cljsjs (28)
- # cljsrn (1)
- # clojure (390)
- # clojure-dev (5)
- # clojure-india (1)
- # clojure-italy (5)
- # clojure-nl (24)
- # clojure-poland (4)
- # clojure-russia (123)
- # clojure-spec (71)
- # clojure-taiwan (2)
- # clojure-uk (8)
- # clojurescript (236)
- # core-matrix (6)
- # cursive (19)
- # datomic (16)
- # defnpodcast (2)
- # editors (1)
- # emacs (36)
- # garden (2)
- # hoplon (5)
- # jobs (1)
- # jobs-discuss (10)
- # juxt (47)
- # luminus (4)
- # lumo (6)
- # off-topic (207)
- # om (1)
- # onyx (20)
- # pedestal (40)
- # perun (2)
- # re-frame (8)
- # reagent (48)
- # ring (2)
- # ring-swagger (2)
- # specter (13)
- # unrepl (89)
- # vim (6)
oi good peeps here.
i am happy user of use-package
but a bit confused at the same time… i kinda expected it pulling the latest version of packages at startup unless i pin the package to melpa-stable
but apparently that is not happening… what am i missing? is there an easy use-package way to achieve this? or is this tangential to use-package?
I don't think use-package should do that @benedek
ah no maybe you are right it should do that
i can of course get this effect by nuking my elpa
directory where the packages are stored
@benedek I don’t understand why you need to nuke elpa. When I want to upgrade, I M-x list-packages
then U
to mark upgradable packages and then x
to execute the upgrade…
I would not like use-package
to auto-upgrade, myself, because sometimes I must resist my upgrade desires to avoid risking a breaking change while getting work done.
but there a certain pkgs I actively develop (around clojure ;) ) which I just want to have the cutting edge even if risky
also, what's the inverse of point
? when I want to set the point instead of reading its value
@qqq you have to use match-beginning
after that
or match-end
@richiardiandrea : @dpsutton : ah, thanks, I just used (backward-char (- (match-end 0) (match-beginning 0))
(helm-grep-for (concat "def[^\\s]+ " symbol-under-cursor))
now, this almost works, but sometimes, symbol-under-cursor can have special meaning as a regexp
so my question is: how can I change the symbol-under-cursor string to a regexp that only matches the original literla string?
@qqq if you already know the symbol under the cursor, you can use the function http://www.gnu.org/software/emacs/manual/html_node/elisp/Regexp-Functions.html to escape it
@tanzoniteblack : regexp-quote is precisely what I needed; thanks!
of course...that's escaping for emacs regexes, which might be a 1-1 match for grep, which might be an issue depending on how helm-grep-for
works
I know for grep, you can just use the parameter -F
to have it do literal string matches
ag
probably has something similar, and you might be able to pass extra parameters through somehow?