 (add-to-list 'auto-mode-alist '("\\.h" . c++-mode))
 (add-to-list 'auto-mode-alist '("\\.mm" . objc-mode))
 
+(add-hook 'prog-mode-hook 'company-mode)
 (add-hook 'c-mode-common-hook 'google-set-c-style)
-
 (add-hook 'after-save-hook
           (lambda ()
             (if (string= (buffer-name) "init.el")

;; See the License for the specific language governing permissions and
;; limitations under the License.

(autoload
  'clang-format
  "~/.emacs.d/lisp/clang-format/clang-format"

(autoload
  'google-set-c-style
  "~/.emacs.d/lisp/styleguide/google-c-style")

(autoload
  'company-mode
  "~/.emacs.d/lisp/company-mode/company")

(defalias 'yes-or-no-p 'y-or-n-p)
(savehist-mode t)
