I want to detect if selection made was activated and bind appropriate code for indent-region or ifselection mode was not activate - other code.
indent-for-tab-command - is default command that choose between indent-according-to-mode and indent-region automatically.
- indent-according-to-mode - indentation for one line
- indent-region - it indent region with indent-according-to-mode.
(defun indent-or-complete () (interactive) (if (looking-at "\\_>") (progn (expand-abbrev) (company-complete-common) ) ;; (indent-according-to-mode) (indent-for-tab-command) ))