Giter VIP home page Giter VIP logo

Comments (17)

innerout avatar innerout commented on May 28, 2024 1

Guys sorry for the late answer try to put (package-refresh-contents) before (package-initialize)

from auto-complete.

Noah-Huppert avatar Noah-Huppert commented on May 28, 2024 1

I am also having the same issue. This is my init.el:

https://github.com/Noah-Huppert/emacs-configuration/blob/e6cda2621be935247b6d2778bf6d9a9e86aa5023/init.el#L6

I ran package-refresh-contents. However the auto-complete package does not show.

2021-05-23-14-52-02

But I see the package on the MELPA website...

2021-05-23-15-00-38

from auto-complete.

codonomado avatar codonomado commented on May 28, 2024

+1

from auto-complete.

innerout avatar innerout commented on May 28, 2024

If you run package-list-packages.Do you see auto-complete?

from auto-complete.

FynnAschmoneit avatar FynnAschmoneit commented on May 28, 2024

auto-complete is not seen in package-list-packages.

from auto-complete.

innerout avatar innerout commented on May 28, 2024

can you post your config?

from auto-complete.

FynnAschmoneit avatar FynnAschmoneit commented on May 28, 2024

from auto-complete.

innerout avatar innerout commented on May 28, 2024

Did you forget perhaps to attach the config? I cannot see any attachment in the mail.

from auto-complete.

FynnAschmoneit avatar FynnAschmoneit commented on May 28, 2024

Hi,
I send it per mail. Anyway, I don't see where to upload an attachment here, so I'll just copy and paste it here:

`;; init.el --- Emacs configuration

(require 'package)

(let* ((no-ssl (and (memq system-type '(windows-nt ms-dos))
(not (gnutls-available-p))))
(proto (if no-ssl "http" "https")))
;; Comment/uncomment these two lines to enable/disable MELPA and MELPA Stable as desired
;;(add-to-list 'package-archives (cons "melpa" (concat proto "://melpa.org/packages/")) t)
(add-to-list 'package-archives (cons "melpa-stable" (concat proto "://stable.melpa.org/packages/")) t))

(package-initialize)

(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))

(add-hook 'after-init-hook 'global-company-mode) ;; company mode for auto completion
(setq company-dabbrev-downcase nil) ;; company mode to suggest case sensitively (upper/lower case )

;; BASIC CUSTOMIZATION
;; --------------------------------------

(setq inhibit-startup-message t) ;; hide the startup message
(global-linum-mode t) ;; enable line numbers globally

(custom-set-variables
'(ansi-color-names-vector ["#242424" "#e5786d" "#95e454" "#cae682" "#8ac6f2" "#333366" "#ccaa8f" "#f6f3e8"])
'(custom-enabled-themes (quote (wheatgrass)))
'(tool-bar-mode nil))
(custom-set-faces )

;; store backup files in temp directory
(setq backup-directory-alist
((".*" . ,temporary-file-directory))) (setq auto-save-file-name-transforms ((".*" ,temporary-file-directory t)))

;; neotree package for file tree, see https://www.emacswiki.org/emacs/NeoTree
(add-to-list 'load-path "/usr/share/emacs/neotree")
(require 'neotree)
(global-set-key [f8] 'neotree-toggle)

;; CC mode config:
(setq-default c-basic-offset 4)

;; init.el ends here`

from auto-complete.

immiao avatar immiao commented on May 28, 2024

I got the same issue. It's not shown in package-list-packages.

from auto-complete.

innerout avatar innerout commented on May 28, 2024

Could you change (add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/")) to be before the package-initialize?

from auto-complete.

immiao avatar immiao commented on May 28, 2024

It is before the package-initialize.
I'm not sure what's going on.

(load "~/.emacs.d/lisp/PG/generic/proof-site")
(require 'package)

;; Add melpa package source when using package list
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/") t)

(setq make-backup-files nil)
(setq auto-save-default nil) ; stop creating #autosave# files

(define-key global-map [(meta up)] '(lambda() (interactive) (scroll-other-window -1)))
(define-key global-map [(meta down)] '(lambda() (interactive) (scroll-other-window 1)))

(package-initialize)

(custom-set-variables
 ;; custom-set-variables was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 '(custom-safe-themes
   (quote
    ("8aebf25556399b58091e533e455dd50a6a9cba958cc4ebb0aab175863c25b9a4" default)))
 '(package-selected-packages
   (quote
    (markdown-mode rjsx-mode neotree auto-complete solarized-theme))))
(custom-set-faces
 ;; custom-set-faces was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 )

(load-theme 'tango-dark t)

;; this is for customizing proof general key bindings
(eval-after-load "proof-script"
  '(progn
     (define-key proof-mode-map (kbd "C-c RET")
       'proof-goto-point)
     ))

;; default splitting vertically
(setq split-height-threshold nil)
(setq split-width-threshold 0)

;; disable auto indentation
(when (fboundp 'electric-indent-mode) (electric-indent-mode -1))

;; enable auto bracket
(electric-pair-mode 1)
;;(auto-complete-mode 1)

;; always use space indentation
(setq-default indent-tabs-mode nil)
(setq-default tab-width 4)
(setq-default js-indent-level 2)
(setq neo-window-width 30)
(setq neo-persist-show nil)
;; (add-hook 'after-init-hook #'neotree-toggle)
;; (autoload 'neotree "neotree" "" t)
(neotree-toggle)
(switch-to-buffer-other-window "*scratch*")
;; (xterm-mouse-mode 1)
;; (windmove-default-keybindings)

(global-unset-key (kbd "M-j"))
(global-unset-key (kbd "M-k"))
(global-set-key (kbd "M-j") (lambda () (interactive) (other-window -1)))
(global-set-key (kbd "M-k") (lambda () (interactive) (other-window 1)))

(add-to-list 'auto-mode-alist '("\\.js\\'" . rjsx-mode))

from auto-complete.

innerout avatar innerout commented on May 28, 2024

what version of emacs do you have ?

from auto-complete.

immiao avatar immiao commented on May 28, 2024

24.3

from auto-complete.

jcs090218 avatar jcs090218 commented on May 28, 2024

@immiao @codonomado @artforlife Does @innerout answered your question? Thanks! 😄

from auto-complete.

Noah-Huppert avatar Noah-Huppert commented on May 28, 2024

from auto-complete.

saste avatar saste commented on May 28, 2024

Same is happening here, tried both on macOS and on Linux.

On Linux the emacs version is:

GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cairo version 1.16.0) of 2023-08-16, modified by Debian

Note that I can see the package listed as a dependency if I install another package (e.g. auto-complete-c-headers, then I see this information in the package buffer:

Package auto-complete is dependency.

     Status: Installed in ‘auto-complete-20221231.1633/’ (unsigned).
    Version: 20221231.1633
     Commit: 59c11c453bfa0794302848a004d1be3b1684f17b
    Summary: Auto Completion for GNU Emacs
   Requires: popup-0.5.0, cl-lib-0.5
Required by: jedi-20191011.1750, auto-complete-c-headers-20150912.323
   Homepage: https://github.com/auto-complete/auto-complete
   Keywords: completion convenience 
 Maintainer: Jen-Chieh Shen <[email protected]>
     Author: Tomohiro Matsuyama <[email protected]>
Other versions: 20221231.1633 (melpa).

So it looks like the package is not considered a "primary package" for some reason, and therefore is not shown in the packages list, but can be installed as a dependency (I cannot say why).

from auto-complete.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.