diff options
author | Kyle Meyer <kyle@kyleam.com> | 2013-10-27 21:25:46 -0400 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2013-10-27 21:33:32 -0400 |
commit | f21775df2bd7c405d755471f27cdb1e9aeeb8f2d (patch) | |
tree | dc0fce9ebcad24b24c1dd067e915ab185f67c8ba | |
parent | b3e66da7e2f798db0d3bb5ee551b9cf42fd6ed45 (diff) | |
download | emacs.d-f21775df2bd7c405d755471f27cdb1e9aeeb8f2d.tar.gz |
Clean up comment function
-rw-r--r-- | init/km-func.el | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/init/km-func.el b/init/km-func.el index 7d493b8..acbeb7d 100644 --- a/init/km-func.el +++ b/init/km-func.el @@ -68,10 +68,10 @@ user." "Comment/uncomment the current line or region" (interactive) (let (beg end) - (if (region-active-p) - (setq beg (region-beginning) end (region-end)) - (setq beg (line-beginning-position) end (line-end-position))) - (comment-or-uncomment-region beg end)) + (if (region-active-p) + (setq beg (region-beginning) end (region-end)) + (setq beg (line-beginning-position) end (line-end-position))) + (comment-or-uncomment-region beg end)) (forward-line)) ;; kill functions |