diff --git a/index.html b/index.html index db1fbda9..ac3d8a93 100644 --- a/index.html +++ b/index.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - + @@ -321,9 +321,11 @@ for the JavaScript code in this tag.
  • 6.32. discover-my-major
  • 6.33. frames-only-mode
  • 6.34. refine
  • -
  • 6.35. winner
  • -
  • 6.36. eyebrowse
  • -
  • 6.37. fill-column-indicator
  • +
  • 6.35. el-get
  • +
  • 6.36. winner
  • +
  • 6.37. eyebrowse
  • +
  • 6.38. tiling
  • +
  • 6.39. fill-column-indicator
  • 7. Keybindings @@ -439,8 +441,9 @@ for the JavaScript code in this tag.
  • 12.1.3.7. overseer
  • 12.1.3.8. Misc
  • 12.1.3.9. Show result of eval-last-sexp inline
  • -
  • 12.1.3.10. Init hook
  • -
  • 12.1.3.11. Keybinds
  • +
  • 12.1.3.10. Reevalute defvars when running eval-last-sexp
  • +
  • 12.1.3.11. Init hook
  • +
  • 12.1.3.12. Keybinds
  • 12.1.4. clojure @@ -2818,11 +2821,21 @@ proced is an top like utility that runs inside of emacs. The following sets auto -
    -

    6.35 winner

    +
    +

    6.35 el-get

    +
    (use-package el-get)
    +
    +
    +
    +
    +
    +

    6.36 winner

    +
    +
    +
    (use-package winner
       :after hydra
       :demand t
    @@ -2841,8 +2854,8 @@ proced is an top like utility that runs inside of emacs. The following sets auto
     
    -

    6.36 eyebrowse

    -
    +

    6.37 eyebrowse

    +
    (use-package eyebrowse
    @@ -2853,9 +2866,23 @@ proced is an top like utility that runs inside of emacs. The following sets auto
     
    +
    +

    6.38 tiling

    +
    +
    + +
    (el-get-bundle tiling
    +  :url "https://raw.githubusercontent.com/lgfang/elisp/master/tiling.el")
    +
    +(use-package tiling
    +  :ensure nil)
    +
    +
    +
    +
    -

    6.37 fill-column-indicator

    -
    +

    6.39 fill-column-indicator

    +

    This interferes with too many other packages. See https://github.com/alpaker/Fill-Column-Indicator/issues/21 for more details @@ -3487,6 +3514,7 @@ I don't use auto-complete at all, so I have set up a hook to automatically disab :demand t :diminish smartparens-mode :bind (:map smartparens-mode-map + ("H-z" . sp-kill-symbol) ("C-)" . sp-forward-slurp-sexp) ("C-}" . sp-forward-barf-sexp) ("C-(" . sp-backward-slurp-sexp) @@ -4320,9 +4348,44 @@ Taken from -

    12.1.3.10 Init hook
    +
    +
    12.1.3.10 Reevalute defvars when running eval-last-sexp
    +

    +What follows is a function that checks to see if what precedes point is a defvar +and reevaluates it as a setq if it is +

    +
    + +
    (defun imalison:defvar-at-point ()
    +  (let* ((preceding-sexp (elisp--preceding-sexp)))
    +    (when (and (listp preceding-sexp) (equal (car preceding-sexp) 'defvar))
    +      preceding-sexp)))
    +
    +(defun imalison:maybe-eval-defvar-as-setq ()
    +  (interactive)
    +  (let ((the-defvar (imalison:defvar-at-point)))
    +    (when the-defvar
    +      (eval `(setq ,@(cdr the-defvar))))))
    +
    +
    +

    +Now we add advice to eval-last-sexp so that it has this behavior. +

    +
    + +
    (defun imalison:maybe-setq-instead (fn &rest args)
    +  (or (imalison:maybe-eval-defvar-as-setq)
    +      (apply fn args)))
    +
    +(advice-add 'eval-last-sexp :around 'imalison:maybe-setq-instead)
    +
    +
    +
    +
    +