Skip to content

Commit

Permalink
feat(tags): make irony-mode obsolete
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Nov 6, 2024
1 parent c4d6e51 commit 6e0aff7
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 18 deletions.
20 changes: 2 additions & 18 deletions modules/me-tags.el
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
:hook (minemacs-first-c/c++-file . +citre--load-default-config-h)
:commands (+citre-gtags-create-list-of-files-to-index +citre-gtags-create-list-of-files-to-index-bitbake-aware)
:custom
;; Better (!) project root detection function
(citre-project-root-function #'+citre-recursive-project-root)
(citre-project-root-function #'+citre-recursive-project-root) ; Better (!) project root detection function
:init
(defun +citre--load-default-config-h () (require 'citre-config))

Expand Down Expand Up @@ -81,7 +80,7 @@ Fall back to the default `citre--project-root'."
(defun +citre-gtags-create-list-of-files-to-index-bitbake-aware (top-dir build-dir)
"Create a list of files to index in TOP-DIR and under Bitbake's BUILD-DIR."
(interactive (list (read-directory-name "Create file list in directory: ")
(read-directory-name "Build directory: ")))
(read-directory-name "Bitbake build directory: ")))
(let* ((default-directory top-dir)
(+citre-gtags-files-list-ignored-directories
(append +citre-gtags-files-list-ignored-directories
Expand Down Expand Up @@ -161,21 +160,6 @@ Fallback to the default function if none is found."
:commands (rtags-xref-enable))


;; A C/C++ minor mode for Emacs powered by "libclang"
(use-package irony-mode
:straight t
:config
(when os/win ; Windows performance tweaks
(when (boundp 'w32-pipe-read-delay) (setq w32-pipe-read-delay 0))
;; Set the buffer size to 64K on Windows (from the original 4K)
(when (boundp 'w32-pipe-buffer-size) (setq irony-server-w32-pipe-buffer-size (* 64 1024)))))


;; Integration of `irony-mode' with `eldoc'
(use-package irony-eldoc
:straight t)


(provide 'me-tags)

;;; me-tags.el ends here
27 changes: 27 additions & 0 deletions modules/obsolete/me-irony.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
;;; me-irony.el --- irony-mode -*- lexical-binding: t; -*-

;; Copyright (C) 2022-2024 Abdelhak Bougouffa

;; Author: Abdelhak Bougouffa (rot13 "noqryunx.obhtbhssn-rkg@fntrzpbz.pbz")

;;; Commentary:

;;; Code:

;; A C/C++ minor mode for Emacs powered by "libclang"
(use-package irony-mode
:straight t
:config
(when os/win ; Windows performance tweaks
(when (boundp 'w32-pipe-read-delay) (setq w32-pipe-read-delay 0))
;; Set the buffer size to 64K on Windows (from the original 4K)
(when (boundp 'w32-pipe-buffer-size) (setq irony-server-w32-pipe-buffer-size (* 64 1024)))))


;; Integration of `irony-mode' with `eldoc'
(use-package irony-eldoc
:straight t)


(provide 'obsolete/me-irony)
;;; me-irony.el ends here

0 comments on commit 6e0aff7

Please sign in to comment.