Emacs: Use which-function-mode.

This commit is contained in:
tastytea 2020-11-16 20:14:29 +01:00
parent 9eaa312ac8
commit c2175d42af

View File

@ -1,6 +1,6 @@
;;; common.el --- Common programming settings. -*- lexical-binding: t; -*- ;;; common.el --- Common programming settings. -*- lexical-binding: t; -*-
;; Time-stamp: <2020-11-13T17:58:15+0100> ;; Time-stamp: <2020-11-15T19:51:36+0100>
;;; Commentary: ;;; Commentary:
@ -23,7 +23,9 @@
"Returns the version of clangd as float." "Returns the version of clangd as float."
(string-to-number (string-to-number
(nth 2 (split-string (nth 2 (split-string
(shell-command-to-string "clangd --version")))))) (shell-command-to-string "clangd --version")))))
(which-function-mode))
:bind (("C-:" . ff-find-other-file) ; Switch between header and source. :bind (("C-:" . ff-find-other-file) ; Switch between header and source.
(:map compilation-mode-map (:map compilation-mode-map
("<f5>" . compilation-previous-error) ("<f5>" . compilation-previous-error)