Fork me on GitHub
#emacs
<
2020-02-12
>
EmmanuelOga08:02:35

I just want to say... thank god for winner-mode 🙂 . winner-undo is a must for not missing minutes and hours of shuffling windows around.

👍 4
sogaiu08:02:57

never used it before -- do you have some favorite commands from it to recommend?

sogaiu08:02:11

apart from winner-undo, that is 🙂

sogaiu08:02:33

ah, the only other command is winner-redo

😁 4
EmmanuelOga09:02:51

indeed, minimalism is one of the features haha. Only redo and undo is available

EmmanuelOga09:02:29

when it comes to windows there's also the rotate package that helps move windows between frames and change layouts. Still learning how to use it

sogaiu09:02:52

i appreciate there only being a few commands -- am more likely to try it out 🙂

Piotr BrzeziƄski10:02:35

Hey! I’m trying to make emacs my main editor (switching from vsc). At work I currently use JS/typescript so I wanted to setup some syntax highlighting etc. I found that there are supposed to be packages like company-mode and typescrip-mode that I should install, but when I M-x and package-install or packages-list, these packages aren’t available to be installed. Why could that be? My init has these ->

(require 'package)
(add-to-list 'package-archives
             '("tromey" . "") t)
(add-to-list 'package-archives
             '("melpa" . "") t)
(add-to-list 'package-archives
             '("melpa-stable" . "") t)

(add-to-list 'package-archives
             '("marmalade" . "") t)
(add-to-list 'package-archives
             '("melpa2" . "") t)

(add-to-list 'package-pinned-packages '(cider . "melpa-stable") t)
(add-to-list 'package-pinned-packages '(magit . "melpa-stable") t)
(package-initialize)

sogaiu12:02:40

so did you do 'U' (M-x package-menu-mark-upgrades) in the *Packages* buffer?

sogaiu12:02:54

fwiw, typescript-mode and company show up here in at least melpa and melpa-stable

Piotr BrzeziƄski12:02:29

:thinking_face: I didn’t do the step you mentioned, let me see.

sogaiu12:02:24

fwiw, when i first to M-x package-list-packages, the list of things doesn't appear to fully populate immediately.

Piotr BrzeziƄski12:02:43

Ah
I shouldn’t have looked for typescript-mode but just typescript instead?

sogaiu12:02:35

here there is a typescript-mode -- i don't see something that is just typescript

sogaiu12:02:59

btw, what is your emacs version?

Piotr BrzeziƄski12:02:25

26.3 (I’m on osx)

sogaiu12:02:44

ok, that's the same -- i asked because typescript-mode has a requires here of emacs-24.3

Piotr BrzeziƄski12:02:37

Do you mind sharing your packages setup from init?

sogaiu12:02:46

just a moment

Piotr BrzeziƄski12:02:46

Maybe there’s something messed up in my config.

sogaiu12:02:48

i have the following defined in my init.el and i call it in the same file

Piotr BrzeziƄski12:02:39

I tried the code snippet you sent but am getting an error Invalid read syntax: . in wrong context

sogaiu12:02:36

hmm...i'll double-check in the mean time, the last answer at the emacs stackexchange link might be worth a look

sogaiu12:02:15

i copy-pasted:

(defun package-settings ()
  (use-package package
    :config
    (package-initialize) ; XXX: wasn't getting full list of packages otherwise
    (add-to-list 'package-archives
      '("melpa" . ""))
    (add-to-list 'package-archives
      '("lambdaisland" . "") t)
    (add-to-list 'package-archives
      '("melpa-stable" . ""))
    (add-to-list 'package-archives
      '("replique" .
         "") t)))
evaluated the defun and then called the function. seemed to work here...

sogaiu12:02:05

ah, if you don't have use-package, i guess it might not work

sogaiu12:02:21

in any case, if you just use the parts after :config (with some suitable delimiter removal at the end) it should work.

Piotr BrzeziƄski12:02:40

👍 working on it

sogaiu12:02:41

(package-initialize) ; XXX: wasn't getting full list of packages otherwise
    (add-to-list 'package-archives
      '("melpa" . ""))
    (add-to-list 'package-archives
      '("lambdaisland" . "") t)
    (add-to-list 'package-archives
      '("melpa-stable" . ""))
    (add-to-list 'package-archives
      '("replique" .
	"") t)

sogaiu12:02:08

fwiw, that worked here via emacs -q

Piotr BrzeziƄski12:02:57

Dunno lol, I copied your config, I went through the advices in link you posted and still can’t get the correct results.

Piotr BrzeziƄski12:02:11

Nevermind, I will try and dig into it more later. Thank you for your assistance anyway @sogaiu

sogaiu12:02:09

@peb.brzezinski hope it can work out for you before long