2015-04-16 10:43:10 +00:00
|
|
|
;;; packages.el --- semantic Layer packages File for Spacemacs
|
|
|
|
;;
|
2021-03-22 20:11:29 +00:00
|
|
|
;; Copyright (c) 2012-2021 Sylvain Benner & Contributors
|
2015-04-16 10:43:10 +00:00
|
|
|
;;
|
|
|
|
;; Author: Sylvain Benner <sylvain.benner@gmail.com>
|
|
|
|
;; URL: https://github.com/syl20bnr/spacemacs
|
|
|
|
;;
|
|
|
|
;; This file is not part of GNU Emacs.
|
|
|
|
;;
|
2021-03-24 03:31:44 +00:00
|
|
|
;; This program is free software; you can redistribute it and/or modify
|
|
|
|
;; it under the terms of the GNU General Public License as published by
|
|
|
|
;; the Free Software Foundation, either version 3 of the License, or
|
|
|
|
;; (at your option) any later version.
|
|
|
|
;;
|
|
|
|
;; This program is distributed in the hope that it will be useful,
|
|
|
|
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
;; GNU General Public License for more details.
|
|
|
|
;;
|
|
|
|
;; You should have received a copy of the GNU General Public License
|
|
|
|
;; along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
2015-04-16 10:43:10 +00:00
|
|
|
|
2015-11-20 18:25:53 +00:00
|
|
|
(setq semantic-packages
|
|
|
|
'(
|
2016-05-14 16:51:30 +00:00
|
|
|
(semantic :location built-in)
|
2016-03-15 03:17:09 +00:00
|
|
|
srefactor
|
2015-11-20 18:25:53 +00:00
|
|
|
stickyfunc-enhance
|
|
|
|
))
|
2015-04-16 10:43:10 +00:00
|
|
|
|
2015-04-23 14:35:04 +00:00
|
|
|
(defun semantic/init-semantic ()
|
|
|
|
(use-package semantic
|
2018-03-04 04:37:53 +00:00
|
|
|
:defer t
|
2018-01-18 04:03:00 +00:00
|
|
|
:config (add-to-list 'semantic-default-submodes
|
|
|
|
'global-semantic-idle-summary-mode)))
|
2015-04-16 10:43:10 +00:00
|
|
|
|
2015-04-23 14:35:04 +00:00
|
|
|
(defun semantic/init-srefactor ()
|
2018-03-04 04:37:53 +00:00
|
|
|
(use-package srefactor :defer t))
|
2015-04-23 14:35:04 +00:00
|
|
|
|
2018-01-18 04:03:00 +00:00
|
|
|
(defun semantic/pre-init-stickyfunc-enhance ()
|
|
|
|
(spacemacs|use-package-add-hook semantic
|
|
|
|
:post-init (add-to-list 'semantic-default-submodes
|
|
|
|
'global-semantic-stickyfunc-mode)))
|
2019-12-03 15:00:56 +00:00
|
|
|
|
2015-04-16 10:43:10 +00:00
|
|
|
(defun semantic/init-stickyfunc-enhance ()
|
2019-12-03 15:00:56 +00:00
|
|
|
(use-package stickyfunc-enhance
|
|
|
|
:defer t
|
|
|
|
:init
|
|
|
|
(progn
|
|
|
|
(spacemacs|add-toggle semantic-stickyfunc
|
|
|
|
:mode semantic-stickyfunc-mode
|
|
|
|
:documentation "Enable semantic-stickyfunc."
|
|
|
|
:evil-leader "TS")
|
|
|
|
(spacemacs|add-toggle semantic-stickyfunc-globally
|
|
|
|
:mode global-semantic-stickyfunc-mode
|
|
|
|
:documentation "Enable semantic-stickyfunc globally."
|
|
|
|
:evil-leader "T C-S"))))
|
2018-11-04 14:12:00 +00:00
|
|
|
|
|
|
|
(defun spacemacs//disable-semantic-idle-summary-mode ()
|
|
|
|
(semantic-idle-summary-mode 0))
|