Skip to content

Commit

Permalink
refactor: fixxing autocomplete
Browse files Browse the repository at this point in the history
  • Loading branch information
bgcicca committed Feb 13, 2025
1 parent 31e8e75 commit 1dc7042
Show file tree
Hide file tree
Showing 5 changed files with 71 additions and 47 deletions.
1 change: 1 addition & 0 deletions .emacs.d/.dap-breakpoints
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#s(hash-table size 65 test equal rehash-size 1.5 rehash-threshold 0.8125 data ("/home/cicca/estudo/java/src/Poo.java" ((:point 104))))
74 changes: 46 additions & 28 deletions .emacs.d/ac-comphist.dat
Original file line number Diff line number Diff line change
@@ -1,30 +1,48 @@
((("inv_lista" .
[0 0 0 1 1 0 0 0 0])
("l_inv" .
[0 0 3 0 0])
("inv_aux" .
[0 0 0 4 0 0 0])
("otherwise" .
[0 0 0 2 1 0 0 0 0])
("lista" .
[6 0 0 0 1])
("String" .
[0 0 0 0 1 3])
("include" .
[0 0 0 1 0 0 0])
("load-file" .
[2 0 0 0 0 0 0 0 1])
("func" .
[4 0 0 0])
("Name" .
[2 0 0 0])
("MainLanguage" .
[0 0 0 0 1 0 0 0 0 0 0 0])
("Person" .
[1 0 0 1 0 0])
("myperson" .
[0 0 1 0 0 0 0 0])
((("arrayBase" .
[1 0 0 0 0 0 0 0 0])
("num" .
[2 0 0])
("println" .
[1 0 0 0 0 0 0])
("out" .
[1 0 0])
("System" .
[1 0 0 0 0 0])
("arrayInt" .
[1 0 0 0 1 0 0 0])
("array" .
[2 0 0 0 0])
("Main" .
[0 0 0 1])
("main" .
[1 0 0 0])
("pertence" .
[1 0 0 3 1 1 0 0])
("myfst" .
[1 0 0 0 0])
("pertence" .
[1 0 0 3 1 1 0 0])))
("myperson" .
[0 0 1 0 0 0 0 0])
("Person" .
[1 0 0 1 0 0])
("MainLanguage" .
[0 0 0 0 1 0 0 0 0 0 0 0])
("Name" .
[2 0 0 0])
("func" .
[4 0 0 0])
("load-file" .
[2 0 0 0 0 0 0 0 1])
("include" .
[0 0 0 1 0 0 0])
("String" .
[0 0 0 0 1 3])
("lista" .
[6 0 0 0 1])
("otherwise" .
[0 0 0 2 1 0 0 0 0])
("inv_aux" .
[0 0 0 4 0 0 0])
("l_inv" .
[0 0 3 0 0])
("inv_lista" .
[0 0 0 1 1 0 0 0 0])))
9 changes: 9 additions & 0 deletions .emacs.d/eshell/history
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
exit
ls
javac Matrizes.java
ls
java Matrizes
rm -rf Matrizes.class
clear
exit
exit
34 changes: 15 additions & 19 deletions .emacs.d/init.el
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@
(setq inhibit-startup-message t)
(setq-default indent-tabs-mode nil)
(setq-default tab-width 4)
(setq initial-scratch-message nil)
(electric-pair-mode t)

(setq auto-mode-alist (append '(("\\.scm$" . scheme-mode)) auto-mode-alist))
(setq auto-mode-alist (append '(("\\.lisp$" . lisp-mode)) auto-mode-alist))
Expand Down Expand Up @@ -68,14 +70,22 @@
:config (helm-mode))
(use-package lsp-treemacs)

(defun my-eshell-split-window ()

(interactive)
(split-window-below)
(other-window 1)
(eshell))

(add-to-list 'load-path "~/.emacs.d/lisp/")

(require 'xah-fly-keys)

(define-key xah-fly-insert-map (kbd "C-s") 'save-buffer)

(define-key xah-fly-insert-map (kbd "C-n") 'xah-new-empty-buffer)
(define-key xah-fly-command-map (kbd "S") 'save-buffer)
(define-key xah-fly-command-map (kbd ".") 'isearch-forward)
(define-key xah-fly-insert-map (kbd "C-e") 'my-eshell-split-window)

(xah-fly-keys 1)

Expand All @@ -87,17 +97,6 @@
(interactive)
(dired default-directory))

(defun my-eshell-split-window ()

(interactive)
(split-window-below)
(other-window 1)
(eshell))

(global-set-key (kbd "C-c f") 'open-dired)
(global-set-key (kbd "C-c q") 'save-buffers-kill-emacs)

(global-set-key (kbd "C-c s") 'my-eshell-split-window)

(defun move-line-up ()
(interactive)
Expand Down Expand Up @@ -160,13 +159,12 @@
:config
(vertico-posframe-mode 1))

(ac-config-default)
(global-auto-complete-mode t)
;; LSP Mode
(use-package lsp-mode
:ensure t
:init
(setq lsp-keymap-prefix "C-c l")
:hook ((python-mode . lsp))
:commands lsp)
:hook ((python-mode . lsp)))

(use-package lsp-ui
:commands lsp-ui-mode)
Expand All @@ -177,8 +175,6 @@
(require 'lsp-pyright)
(lsp))))



;;; This will enable emacs to compile a simple cpp single file without any makefile by just pressing [f9] key
(defun code-compile()
(interactive)
Expand All @@ -202,7 +198,7 @@
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(package-selected-packages
'(ac-haskell-process auto-complete haskell-mode markdown-mode gruber-darker-theme gams-ac gams-mode ghc-imported-from ghci-completion github-dark-vscode-theme gruvbox-theme lsp-pyright lsp-ui lsp-mode vertico-posframe vertico treemacs all-the-icons doom-themes hydra)))
'(vterm-toggle vterm java-snippets ac-haskell-process auto-complete haskell-mode markdown-mode gruber-darker-theme gams-ac gams-mode ghc-imported-from ghci-completion github-dark-vscode-theme gruvbox-theme lsp-pyright lsp-ui lsp-mode vertico-posframe vertico treemacs all-the-icons doom-themes hydra)))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
Expand Down
Empty file removed .emacs.d/modes/asm-mode.el~
Empty file.

0 comments on commit 1dc7042

Please sign in to comment.